NewInputStream creates a new InputStream that reads from the provided io.Reader. The InputStream owns the buffer and maintains state across sequential Deserialize calls.
(r io.Reader)
| 33 | // NewInputStream creates a new InputStream that reads from the provided io.Reader. |
| 34 | // The InputStream owns the buffer and maintains state across sequential Deserialize calls. |
| 35 | func NewInputStream(r io.Reader) *InputStream { |
| 36 | return NewInputStreamWithBufferSize(r, 0) |
| 37 | } |
| 38 | |
| 39 | // NewInputStreamWithBufferSize creates a new InputStream with a specified minimum buffer size. |
| 40 | func NewInputStreamWithBufferSize(r io.Reader, bufferSize int) *InputStream { |