Section navigation

Public classSealed CodecBodyOutput

Namespace
Rowles.LeanCorpus.Codecs.CodecKit
Assembly
Rowles.LeanCorpus.dll

Append-only body output that updates the frame checksum as bytes are written.

public sealed class CodecBodyOutput : IBufferWriter<byte>, IDisposable
Inheritance
CodecBodyOutput
Implements

Public property Position

Public method Advance(int)

Notifies the IBufferWriter<T> that count data items were written to the output Span<T> or Memory<T>.

Public method AsStream(bool)

Creates a sequential stream adapter over this body output.

Public method Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Public method GetMemory(int)

Returns a Memory<T> to write to that is at least the requested size (specified by sizeHint).

Public method GetSpan(int)

Returns a Span<T> to write to that is at least the requested size (specified by sizeHint).

Public method WriteBoolean(bool)

Public method WriteByte(byte)

Public method WriteBytes(ReadOnlySpan<byte>)

Public method WriteInt32(int)

Public method WriteInt64(long)

Public method WriteSingle(float)

Public method WriteVarInt(int)