Edit

ArcBuffer Struct

Definition

Represents a slice of a ArcBufferWriter.

public struct ArcBuffer : IDisposable
type ArcBuffer = struct
    interface IDisposable
Public Structure ArcBuffer
Implements IDisposable
Inheritance
ArcBuffer
Implements

Remarks

Initializes a new instance of the ArcBuffer type.

Constructors

Name Description
ArcBuffer(ArcBufferPage, Int32, Int32, Int32)

Represents a slice of a ArcBufferWriter.

Fields

Name Description
First

Gets the first page.

Length

Gets the length of this sequence.

Offset

Gets the offset into the first page at which this slice begins.

Properties

Name Description
ArraySegments

Returns an enumerator which can be used to enumerate the array segments referenced by this instance.

MemorySegments

Returns an enumerator which can be used to enumerate the memory segments referenced by this instance.

SpanSegments

Returns an enumerator which can be used to enumerate the span segments referenced by this instance.

Methods

Name Description
AsReadOnlySequence()

Returns a new ReadOnlySequence<T> which must not be accessed after disposing this instance.

CopyTo(ArcBufferWriter)

Copies the contents of this writer to a pooled buffer.

CopyTo(Span<Byte>)

Copies the contents of this writer to a span.

CopyTo<TBufferWriter>(TBufferWriter)

Copies the contents of this writer to a buffer writer.

Dispose()

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

GetEnumerator()

Returns an enumerator which can be used to enumerate the span segments referenced by this instance.

Pin()

Pins this slice, preventing the referenced pages from being returned to the pool.

Slice(Int32, Int32)
Slice(Int32)
ToArray()

Returns the data which has been written as an array.

Unpin()

Unpins this slice, allowing the referenced pages to be returned to the pool.

UnsafeSlice(Int32, Int32)

Applies to