MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / getOneByte

Function getOneByte

pkg/util/tsearch/encoding.go:316–321  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

314}
315
316func getOneByte(b []byte) ([]byte, byte, error) {
317 if len(b) == 0 {
318 return nil, 0, errors.Errorf("insufficient bytes to decode byte")
319 }
320 return b[1:], b[0], nil
321}
322
323func (c *tsNodeCodec) decodeTSNode(b []byte) ([]byte, *tsNode, error) {
324 if c.nTokens == 0 {

Callers 2

decodeTSNodeMethod · 0.85
decodeTSNodePGBinaryMethod · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…