MCPcopy Create free account
hub / github.com/brimdata/super / EncodeInt

Function EncodeInt

primitive.go:171–175  ·  view source on GitHub ↗
(i int64)

Source from the content-addressed store, hash-verified

169}
170
171func EncodeInt(i int64) scode.Bytes {
172 var b [8]byte
173 n := scode.EncodeCountedVarint(b[:], i)
174 return b[:n]
175}
176
177func AppendInt(bytes scode.Bytes, i int64) scode.Bytes {
178 return scode.AppendCountedVarint(bytes, i)

Callers 10

SerializeMethod · 0.92
BenchmarkReadCSUPFunction · 0.92
encodeAnyMethod · 0.92
BuildPrimitiveFunction · 0.92
BenchmarkSortFunction · 0.92
wrapMethod · 0.92
GenValueFunction · 0.92
buildScodeMethod · 0.92
BytesMethod · 0.85
EncodeDurationFunction · 0.85

Calls 1

EncodeCountedVarintFunction · 0.92

Tested by 2

BenchmarkReadCSUPFunction · 0.74
BenchmarkSortFunction · 0.74