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

Method EncodeSInt64

encoder.go:80–83  ·  view source on GitHub ↗

EncodeSInt64 writes a zigzag-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

78
79// EncodeSInt64 writes a zigzag-encoded 64-bit signed integer value to the buffer preceded by the varint-encoded tag key.
80func (e *Encoder) EncodeSInt64(tag int, v int64) {
81 e.offset += EncodeTag(e.p[e.offset:], tag, WireTypeVarint)
82 e.offset += EncodeZigZag64(e.p[e.offset:], v)
83}
84
85// EncodeFixed32 writes a 32-bit unsigned integer value to the buffer using 4 bytes in little endian format,
86// preceded by the varint-encoded tag key.

Callers 15

FuzzNumbersFunction · 0.95
TestEncodeSInt64Function · 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
EncodeZigZag64Function · 0.85

Tested by 2

FuzzNumbersFunction · 0.76
TestEncodeSInt64Function · 0.64