WriteStack
struct WriteStack
Stores a reference id that has been calculated by a polymorphic converter handling a newly encountered boxed struct.
Cancellation token used by converters performing async serialization (e.g. IAsyncEnumerable)
List of completed IAsyncDisposables that have been scheduled for disposal by converters.
Exposes the stackframe that is currently active.
The amount of bytes to write before the underlying Stream should be flushed and the
current buffer adjusted to remove the processed bytes.
Stores a pending task that a resumable converter depends on to continue work.
It must be awaited by the root context before serialization is resumed.
Internal flag to let us know that we need to read ahead in the inner read loop.
In the case of async serialization, used by resumable converters to signal that
the current buffer contents should not be flushed to the underlying stream.
Indicates that the state still contains suspended frames waiting re-entry.
Walks the stack cleaning up any leftover IDisposables
in the event of an exception on serialization
Walks the stack cleaning up any leftover I(Async)Disposables
in the event of an exception on async serialization
Initialize the state without delayed initialization of the JsonTypeInfo.