MCPcopy Create free account
hub / github.com/CrowdStrike/csproto / EncodeUInt32

Method EncodeUInt32

encoder.go:50–53  ·  view source on GitHub ↗

EncodeUInt32 writes a varint-encoded 32-bit unsigned integer value to the buffer preceded by the varint-encoded tag key.

(tag int, v uint32)

Source from the content-addressed store, hash-verified

48
49// EncodeUInt32 writes a varint-encoded 32-bit unsigned integer value to the buffer preceded by the varint-encoded tag key.
50func (e *Encoder) EncodeUInt32(tag int, v uint32) {
51 e.offset += EncodeTag(e.p[e.offset:], tag, WireTypeVarint)
52 e.offset += EncodeVarint(e.p[e.offset:], uint64(v))
53}
54
55// EncodeUInt64 writes a varint-encoded 64-bit unsigned integer value to the buffer preceded by the varint-encoded tag key.
56func (e *Encoder) EncodeUInt64(tag int, v uint64) {

Callers 15

FuzzNumbersFunction · 0.95
TestEncodeUInt32Function · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80
MarshalToMethod · 0.80

Calls 2

EncodeTagFunction · 0.85
EncodeVarintFunction · 0.85

Tested by 2

FuzzNumbersFunction · 0.76
TestEncodeUInt32Function · 0.64