github.com/webmafia/fast@v0.10.0/binary/stream_read_float.go (about) 1 package binary 2 3 import ( 4 "math" 5 ) 6 7 func (b *StreamReader) ReadFloat32() float32 { 8 return math.Float32frombits(b.ReadUint32()) 9 } 10 11 func (b *StreamReader) ReadFloat64() float64 { 12 return math.Float64frombits(b.ReadUint64()) 13 }