MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / PutLengthEncodedString

Function PutLengthEncodedString

IceFireDB-SQLite/pkg/mysql/mysql/util.go:228–233  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

226}
227
228func PutLengthEncodedString(b []byte) []byte {
229 data := make([]byte, 0, len(b)+9)
230 data = append(data, PutLengthEncodedInt(uint64(len(b)))...)
231 data = append(data, b...)
232 return data
233}
234
235func Uint16ToBytes(n uint16) []byte {
236 return []byte{

Callers 3

BuildSimpleTextResultsetFunction · 0.70
DumpMethod · 0.70

Calls 1

PutLengthEncodedIntFunction · 0.70

Tested by

no test coverage detected