Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
220
func
(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
readFrame
Method · 0.95
readCompressedFrame
Method · 0.95
Calls
1
readUvarintAsInt
Function · 0.85
Tested by
no test coverage detected