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

Method EncodeInt64

encoder.go:68–71  ·  view source on GitHub ↗

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

(tag int, v int64)

Source from the content-addressed store, hash-verified

66
67// EncodeInt64 writes a varint-encoded 64-bit signed integer value to the buffer preceded by the varint-encoded tag key.
68func (e *Encoder) EncodeInt64(tag int, v int64) {
69 e.offset += EncodeTag(e.p[e.offset:], tag, WireTypeVarint)
70 e.offset += EncodeVarint(e.p[e.offset:], uint64(v))
71}
72
73// EncodeSInt32 writes a zigzag-encoded 32-bit signed integer value to the buffer preceded by the varint-encoded tag key.
74func (e *Encoder) EncodeSInt32(tag int, v int32) {

Callers 15

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