github.com/webmafia/fast@v0.10.0/binary/buffer_read_float.go (about)

     1  package binary
     2  
     3  import (
     4  	"math"
     5  )
     6  
     7  // Write float32
     8  func (b *BufferReader) ReadFloat32() (v float32) {
     9  	return math.Float32frombits(b.ReadUint32())
    10  }
    11  
    12  // Write float64
    13  func (b *BufferReader) ReadFloat64() (v float64) {
    14  	return math.Float64frombits(b.ReadUint64())
    15  }