MCPcopy
hub / github.com/golang/protobuf / DecodeFixed64

Method DecodeFixed64

proto/buffer.go:227–234  ·  view source on GitHub ↗

DecodeFixed64 consumes a 64-bit little-endian integer from the buffer.

()

Source from the content-addressed store, hash-verified

225
226// DecodeFixed64 consumes a 64-bit little-endian integer from the buffer.
227func (b *Buffer) DecodeFixed64() (uint64, error) {
228 v, n := protowire.ConsumeFixed64(b.buf[b.idx:])
229 if n < 0 {
230 return 0, protowire.ParseError(n)
231 }
232 b.idx += n
233 return uint64(v), nil
234}
235
236// DecodeRawBytes consumes a length-prefixed raw bytes from the buffer.
237// If alloc is specified, it returns a copy the raw bytes

Callers 1

TestNumericPrimitivesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNumericPrimitivesFunction · 0.64