MCPcopy Create free account
hub / github.com/dolthub/doltgresql / VariableIntSlice

Method VariableIntSlice

utils/writer.go:253–258  ·  view source on GitHub ↗

VariableIntSlice writes an int64 slice using variable-length encoding. Smaller values use less space at the cost of larger values using more space, but this is generally more space-efficient. This does carry a computational hit when reading.

(vals []int64)

Source from the content-addressed store, hash-verified

251// larger values using more space, but this is generally more space-efficient. This does carry a computational hit when
252// reading.
253func (writer *Writer) VariableIntSlice(vals []int64) {
254 writer.VariableUint(uint64(len(vals)))
255 for i := range vals {
256 writer.VariableInt(vals[i])
257 }
258}
259
260// VariableUintSlice writes a uint64 slice using variable-length encoding. Smaller values use less space at the cost of
261// larger values using more space, but this is generally more space-efficient. This does carry a computational hit when

Callers 1

TestWriterReaderFunction · 0.95

Calls 2

VariableUintMethod · 0.95
VariableIntMethod · 0.95

Tested by 1

TestWriterReaderFunction · 0.76