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

Method decodeLength

sio/bsupio/parser.go:220–226  ·  view source on GitHub ↗
(code byte)

Source from the content-addressed store, hash-verified

218}
219
220func (p *parser) decodeLength(code byte) (int, error) {
221 v, err := readUvarintAsInt(p.peeker)
222 if err != nil {
223 return 0, err
224 }
225 return (v << 4) | (int(code) & 0xf), nil
226}

Callers 2

readFrameMethod · 0.95
readCompressedFrameMethod · 0.95

Calls 1

readUvarintAsIntFunction · 0.85

Tested by

no test coverage detected