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

Function newReader

db/journal/reader.go:19–26  ·  view source on GitHub ↗
(ctx context.Context, q *Queue, head, tail ID)

Source from the content-addressed store, hash-verified

17}
18
19func newReader(ctx context.Context, q *Queue, head, tail ID) *Reader {
20 return &Reader{
21 ctx: ctx,
22 q: q,
23 cursor: tail - 1,
24 stop: head,
25 }
26}
27
28func (r *Reader) Read(b []byte) (int, error) {
29 if len(r.buffer) == 0 {

Callers 1

NewReaderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected