MCPcopy Create free account
hub / github.com/segmentio/encoding / ReadFloat64

Method ReadFloat64

thrift/binary.go:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (r *binaryReader) ReadFloat64() (float64, error) {
80 b, err := r.read(8)
81 if len(b) < 8 {
82 return 0, err
83 }
84 return math.Float64frombits(binary.BigEndian.Uint64(b)), nil
85}
86
87func (r *binaryReader) ReadBytes() ([]byte, error) {
88 n, err := r.ReadLength()

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
Uint64Method · 0.80

Tested by

no test coverage detected