MCPcopy Create free account
hub / github.com/bcicen/jstream / Stream

Method Stream

decoder.go:129–132  ·  view source on GitHub ↗

Stream begins decoding from the underlying reader and returns a streaming MetaValue channel for JSON values at the configured emitDepth.

()

Source from the content-addressed store, hash-verified

127// Stream begins decoding from the underlying reader and returns a
128// streaming MetaValue channel for JSON values at the configured emitDepth.
129func (d *Decoder) Stream() chan *MetaValue {
130 go d.decode()
131 return d.metaCh
132}
133
134// Pos returns the number of bytes consumed from the underlying reader
135func (d *Decoder) Pos() int { return int(d.pos) }

Callers 6

TestDecoderSimpleFunction · 0.95
TestDecoderNestedFunction · 0.95
TestDecoderFlatFunction · 0.95
TestDecoderMultiDocFunction · 0.95
TestDecoderReaderFailureFunction · 0.95
mainFunction · 0.95

Calls 1

decodeMethod · 0.95

Tested by 5

TestDecoderSimpleFunction · 0.76
TestDecoderNestedFunction · 0.76
TestDecoderFlatFunction · 0.76
TestDecoderMultiDocFunction · 0.76
TestDecoderReaderFailureFunction · 0.76