AdvanceReader(int)
public void AdvanceReader(int count) Advances the reader by the specified number of bytes.
Parameters
countint- The number of bytes to advance the reader.
Exceptions
System.ObjectDisposedException- The writer has been disposed.
System.Buffers.IBufferWriter implementation implemented using pooled arrays which is specialized for creating System.Buffers.ReadOnlySequence instances. public void AdvanceReader(int count)countintSystem.ObjectDisposedExceptionpublic void AdvanceWriter(int count)countintpublic void AppendPinned(ArcBuffer input)input by pinning them. inputArcBufferSystem.ObjectDisposedExceptionpublic ArcBuffer ConsumeSlice(int count)countintpublic void Dispose()public Memory<byte> GetMemory(int sizeHint = 0)System.Memory to write to that is at least the requested size (specified by sizeHint).sizeHintintSystem.Memory. If 0, a non-empty buffer is returned.System.Memory of at least the size sizeHint. If sizeHint is 0, returns a non-empty buffer.System.OutOfMemoryExceptionpublic Span<byte> GetSpan(int sizeHint = 0)System.Span to write to that is at least the requested size (specified by sizeHint).sizeHintintSystem.Span. If 0, a non-empty buffer is returned.System.Span of at least the size sizeHint. If sizeHint is 0, returns a non-empty buffer.public ReadOnlySpan<byte> Peek(scoped in Span<byte> destination)destinationSpan<byte>public int Peek(Span<byte> output)outputSpan<byte>public ArcBuffer PeekSlice(int count)countintSystem.ObjectDisposedExceptionpublic void ReplenishBuffers(List<ArraySegment<byte>> buffers)buffersList<ArraySegment<byte>>public void Reset()public void Truncate(int length)lengthintpublic void Write(ReadOnlySequence<byte> input)inputReadOnlySequence<byte>public void Write(ReadOnlySpan<byte> value)valueReadOnlySpan<byte>public void WriteAt(int offset, ReadOnlySpan<byte> value)offsetintvalueReadOnlySpan<byte>