MCPcopy Create free account
hub / github.com/apache/fory / NewInputStream

Function NewInputStream

go/fory/stream.go:35–37  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
35func NewInputStream(r io.Reader) *InputStream {
36 return NewInputStreamWithBufferSize(r, 0)
37}
38
39// NewInputStreamWithBufferSize creates a new InputStream with a specified minimum buffer size.
40func NewInputStreamWithBufferSize(r io.Reader, bufferSize int) *InputStream {

Calls 1