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

Function SkipLengthEncodedString

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

Source from the content-addressed store, hash-verified

210}
211
212func SkipLengthEncodedString(b []byte) (int, error) {
213 // Get length
214 num, _, n := LengthEncodedInt(b)
215 if num < 1 {
216 return n, nil
217 }
218
219 n += int(num)
220
221 // Check data length
222 if len(b) >= n {
223 return n, nil
224 }
225 return n, io.EOF
226}
227
228func PutLengthEncodedString(b []byte) []byte {
229 data := make([]byte, 0, len(b)+9)

Callers 1

ParseMethod · 0.70

Calls 1

LengthEncodedIntFunction · 0.70

Tested by

no test coverage detected