diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2020-01-26 23:13:22 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2020-01-26 23:13:22 -0500 |
commit | 629cb407c10743b0033fdc648a3c876f244cf558 (patch) | |
tree | 016ff4bfde9e5f12c6b96a22ef2640b95c08bbaa /rrdformat/rrdbinary/types.go | |
parent | 72c4b2518a77ee9952a0fa25ae671f06d8d85570 (diff) |
UnmarshalBinary, EOF
Diffstat (limited to 'rrdformat/rrdbinary/types.go')
-rw-r--r-- | rrdformat/rrdbinary/types.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rrdformat/rrdbinary/types.go b/rrdformat/rrdbinary/types.go index a036d5d..006af3c 100644 --- a/rrdformat/rrdbinary/types.go +++ b/rrdformat/rrdbinary/types.go @@ -27,6 +27,7 @@ type Uint uint64 // 4 or 8 bytes type Int int64 // 4 or 8 bytes type Unival uint64 // 8 bytes type Time int64 // 4 or 8 bytes, only has second-precision +type EOF struct{} // 0 bytes func (u Unival) AsUint64() uint64 { return uint64(u) } func (u Unival) AsFloat64() float64 { return math.Float64frombits(uint64(u)) } |