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

Function NewReadContext

go/fory/reader.go:55–62  ·  view source on GitHub ↗

NewReadContext creates a new read context

(trackRef bool)

Source from the content-addressed store, hash-verified

53
54// NewReadContext creates a new read context
55func NewReadContext(trackRef bool) *ReadContext {
56 return &ReadContext{
57 buffer: NewByteBuffer(nil),
58 refReader: NewRefReader(trackRef),
59 trackRef: trackRef,
60 maxDepth: 128, // Default maximum nesting depth
61 }
62}
63
64// Reset clears state for reuse (called before each Deserialize)
65func (c *ReadContext) Reset() {

Calls 2

NewByteBufferFunction · 0.85
NewRefReaderFunction · 0.85