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

Method ReadFloat

proto/binary/binary.go:892–899  ·  view source on GitHub ↗

ReadFloat

()

Source from the content-addressed store, hash-verified

890
891// ReadFloat
892func (p *BinaryProtocol) ReadFloat() (float32, error) {
893 value, n := protowire.BinaryDecoder{}.DecodeFloat32((p.Buf)[p.Read:])
894 if n < 0 {
895 return value, errDecodeField
896 }
897 _, err := p.next(n)
898 return value, err
899}
900
901// ReadFixed64
902func (p *BinaryProtocol) ReadFixed64() (int64, error) {

Callers 3

ReadBaseTypeWithDescMethod · 0.95
unmarshalSingularMethod · 0.80

Calls 2

nextMethod · 0.95
DecodeFloat32Method · 0.80

Tested by 1