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

Method ReadVarint

proto/binary/binary.go:862–869  ·  view source on GitHub ↗

ReadVarint

()

Source from the content-addressed store, hash-verified

860
861// ReadVarint
862func (p *BinaryProtocol) ReadVarint() (uint64, error) {
863 value, n := protowire.BinaryDecoder{}.DecodeUint64((p.Buf)[p.Read:])
864 if n < 0 {
865 return value, errDecodeField
866 }
867 _, err := p.next(n)
868 return value, err
869}
870
871// ReadFixed32
872func (p *BinaryProtocol) ReadFixed32() (int32, error) {

Callers 2

SkipMethod · 0.95
SkipAllElementsMethod · 0.95

Calls 2

nextMethod · 0.95
DecodeUint64Method · 0.80

Tested by

no test coverage detected