PooledBuffer.BufferSlice Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a slice of a PooledBuffer.
public readonly struct PooledBuffer.BufferSlice
type PooledBuffer.BufferSlice = struct
Public Structure PooledBuffer.BufferSlice
- Inheritance
-
PooledBuffer.BufferSlice
Constructors
PooledBuffer.BufferSlice(PooledBuffer, Int32, Int32) |
Initializes a new instance of the PooledBuffer.BufferSlice type. |
Properties
Buffer |
Gets the underlying PooledBuffer. |
Length |
Gets the length of this slice. |
Offset |
Gets the offset into the underlying buffer at which this slice begins. |
Methods
CopyTo(PooledBuffer) |
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. |
GetEnumerator() |
Returns an enumerator which can be used to enumerate the data referenced by this instance. |
Slice(Int32, Int32) |
Forms a slice out of this instance, beginning at the specified offset into this slice and having the specified length. |
Slice(Int32) |
Forms a slice out of this instance, beginning at the specified offset into this slice. |
ToArray() |
Returns the data which has been written as an array. |