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

Method skip

cmd/super/dev/dig/frames/command.go:223–233  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

221}
222
223func (r *reader) skip(n int) error {
224 if n > 25*1024*1024 {
225 return fmt.Errorf("buffer length too big: %d", n)
226 }
227 got, err := r.reader.Discard(n)
228 if n != got {
229 return fmt.Errorf("short read: wanted to discard %d but got only %d", n, got)
230 }
231 r.pos += int64(n)
232 return err
233}
234
235func (r *reader) readLength(code byte) (int, error) {
236 v, err := r.readUvarint()

Callers 2

readUncompMethod · 0.95
readCompMethod · 0.95

Calls 1

DiscardMethod · 0.80

Tested by

no test coverage detected