MCPcopy Create free account
hub / github.com/Edgio/vflow / NewReader

Function NewReader

reader/reader.go:40–44  ·  view source on GitHub ↗

NewReader constructs a reader

(b []byte)

Source from the content-addressed store, hash-verified

38
39// NewReader constructs a reader
40func NewReader(b []byte) *Reader {
41 return &Reader{
42 data: b,
43 }
44}
45
46// Uint8 reads a byte
47func (r *Reader) Uint8() (uint8, error) {

Callers 9

NewDecoderFunction · 0.92
NewDecoderFunction · 0.92
NewDecoderFunction · 0.92
TestUint8Function · 0.85
TestUint16Function · 0.85
TestUint32Function · 0.85
TestUint64Function · 0.85
TestReadNFunction · 0.85
TestReadCountFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestUint8Function · 0.68
TestUint16Function · 0.68
TestUint32Function · 0.68
TestUint64Function · 0.68
TestReadNFunction · 0.68
TestReadCountFunction · 0.68