MCPcopy Create free account
hub / github.com/blastrain/vitess-sqlparser / EncodeBytes

Function EncodeBytes

tidbparser/dependency/util/codec/bytes.go:46–69  ·  view source on GitHub ↗

EncodeBytes guarantees the encoded value is in ascending order for comparison, encoding with the following rule: [group1][marker1]...[groupN][markerN] group is 8 bytes slice which is padding with 0. marker is `0xFF - padding 0 count` For example: [] -> [0, 0, 0, 0, 0, 0, 0, 0, 247] [1, 2, 3] -> [1,

(b []byte, data []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

encodeBytesFunction · 0.85
EncodeBytesDescFunction · 0.85

Calls 1

reallocBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…