Stream begins decoding from the underlying reader and returns a streaming MetaValue channel for JSON values at the configured emitDepth.
()
| 127 | // Stream begins decoding from the underlying reader and returns a |
| 128 | // streaming MetaValue channel for JSON values at the configured emitDepth. |
| 129 | func (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 |
| 135 | func (d *Decoder) Pos() int { return int(d.pos) } |