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

Method EncodeFixed32

proto/buffer.go:156–159  ·  view source on GitHub ↗

EncodeFixed32 appends a 32-bit little-endian integer to the buffer.

(v uint64)

Source from the content-addressed store, hash-verified

154
155// EncodeFixed32 appends a 32-bit little-endian integer to the buffer.
156func (b *Buffer) EncodeFixed32(v uint64) error {
157 b.buf = protowire.AppendFixed32(b.buf, uint32(v))
158 return nil
159}
160
161// EncodeFixed64 appends a 64-bit little-endian integer to the buffer.
162func (b *Buffer) EncodeFixed64(v uint64) error {

Callers 1

TestNumericPrimitivesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNumericPrimitivesFunction · 0.64