MCPcopy Create free account
hub / github.com/brimdata/super / DecodeLength

Function DecodeLength

context.go:589–595  ·  view source on GitHub ↗
(tv scode.Bytes)

Source from the content-addressed store, hash-verified

587}
588
589func DecodeLength(tv scode.Bytes) (int, scode.Bytes) {
590 namelen, n := binary.Uvarint(tv)
591 if n <= 0 {
592 return 0, nil
593 }
594 return int(namelen), tv[n:]
595}
596
597func (c *Context) Missing() Value {
598 return NewValue(c.StringTypeError(), Missing)

Callers 4

formatTypeValueMethod · 0.92
formatVectorTypeValueMethod · 0.92
DecodeTypeValueMethod · 0.85
DecodeNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected