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

Method resetWriteState

go/fory/fory.go:584–589  ·  view source on GitHub ↗

resetWriteState resets write context state without allocation

()

Source from the content-addressed store, hash-verified

582
583// resetWriteState resets write context state without allocation
584func (f *Fory) resetWriteState() {
585 f.writeCtx.Reset()
586 if f.metaContext != nil {
587 f.metaContext.Reset()
588 }
589}
590
591// SerializeTo serializes a value and appends the bytes to the provided buffer.
592// This is useful when you need to write multiple serialized values to the same buffer.

Callers 3

SerializeMethod · 0.95
SerializeToMethod · 0.95
SerializeFunction · 0.80

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected