<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.2.25502.107" />

SpanWriter<T>

Fast stack based Span<T> writer.
public int Length { get; }

public int Position { get; set; }

public Span<T> Span { get; }

public SpanWriter(Span<T> span)

Fast stack based Span<T> writer.

public void Advance(int count)

Advance the writer by the given count.

public void Reset()

Reset the reader to the beginning of the span.

public void Rewind(int count)

Rewind the writer by the given count.

public bool TryWrite(T value)

Try to write the given value.

public bool TryWrite(ReadOnlySpan<T> values)

Try to write the given value.

public bool TryWriteCount(int count, T value)

Try to write the given value count times.