resetWriteState resets write context state without allocation
()
| 582 | |
| 583 | // resetWriteState resets write context state without allocation |
| 584 | func (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. |
no test coverage detected