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

Method decodeValues

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

Source from the content-addressed store, hash-verified

104}
105
106func (p *parser) decodeValues(code byte) (frame, error) {
107 if (code & 0x40) != 0 {
108 // Compressed
109 return p.readCompressedFrame(code)
110 }
111 bytes, err := p.readFrame(code)
112 if err != nil {
113 return frame{}, err
114 }
115 return frame{ubuf: newBufferFromBytes(bytes)}, nil
116}
117
118// decodeControl reads the next message frame as a control message and
119// returns it as *sbuf.Control, which implements error. Errors are also

Callers 1

readMethod · 0.95

Calls 3

readCompressedFrameMethod · 0.95
readFrameMethod · 0.95
newBufferFromBytesFunction · 0.85

Tested by

no test coverage detected