MCPcopy
hub / github.com/RoaringBitmap/roaring / NewByteInputFromReader

Function NewByteInputFromReader

internal/byte_input.go:29–34  ·  view source on GitHub ↗

NewByteInputFromReader creates reader wrapper

(reader io.Reader)

Source from the content-addressed store, hash-verified

27
28// NewByteInputFromReader creates reader wrapper
29func NewByteInputFromReader(reader io.Reader) ByteInput {
30 return &ByteInputAdapter{
31 r: reader,
32 readBytes: 0,
33 }
34}
35
36// NewByteInput creates raw bytes wrapper
37func NewByteInput(buf []byte) ByteInput {

Callers 1

TestByteInputFlowFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestByteInputFlowFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…