From 629cb407c10743b0033fdc648a3c876f244cf558 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 26 Jan 2020 23:13:22 -0500 Subject: UnmarshalBinary, EOF --- rrdformat/rrdbinary/types.go | 1 + 1 file changed, 1 insertion(+) (limited to 'rrdformat/rrdbinary/types.go') 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)) } -- cgit v1.2.3