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

Method EncodeUInt64

encoder.go:56–59  ·  view source on GitHub ↗

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

(tag int, v uint64)

Source from the content-addressed store, hash-verified

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) {
57 e.offset += EncodeTag(e.p[e.offset:], tag, WireTypeVarint)
58 e.offset += EncodeVarint(e.p[e.offset:], v)
59}
60
61// EncodeInt32 writes a varint-encoded 32-bit signed integer value to the buffer preceded by the varint-encoded tag key.
62func (e *Encoder) EncodeInt32(tag int, v int32) {

Callers 15

FuzzNumbersFunction · 0.95
TestEncodeUInt64Function · 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
TestEncodeUInt64Function · 0.64