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

Method DecodeFixed32

proto/buffer.go:217–224  ·  view source on GitHub ↗

DecodeFixed32 consumes a 32-bit little-endian integer from the buffer.

()

Source from the content-addressed store, hash-verified

215
216// DecodeFixed32 consumes a 32-bit little-endian integer from the buffer.
217func (b *Buffer) DecodeFixed32() (uint64, error) {
218 v, n := protowire.ConsumeFixed32(b.buf[b.idx:])
219 if n < 0 {
220 return 0, protowire.ParseError(n)
221 }
222 b.idx += n
223 return uint64(v), nil
224}
225
226// DecodeFixed64 consumes a 64-bit little-endian integer from the buffer.
227func (b *Buffer) DecodeFixed64() (uint64, error) {

Callers 1

TestNumericPrimitivesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNumericPrimitivesFunction · 0.64