MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / ReadDouble

Method ReadDouble

proto/binary/binary.go:922–929  ·  view source on GitHub ↗

ReadDouble

()

Source from the content-addressed store, hash-verified

920
921// ReadDouble
922func (p *BinaryProtocol) ReadDouble() (float64, error) {
923 value, n := protowire.BinaryDecoder{}.DecodeFixed64((p.Buf)[p.Read:])
924 if n < 0 {
925 return math.Float64frombits(value), errDecodeField
926 }
927 _, err := p.next(n)
928 return math.Float64frombits(value), err
929}
930
931// ReadBytes return bytesData and the sum length of L、V in TLV
932func (p *BinaryProtocol) ReadBytes() ([]byte, error) {

Callers 1

ReadBaseTypeWithDescMethod · 0.95

Calls 2

nextMethod · 0.95
DecodeFixed64Method · 0.80

Tested by

no test coverage detected