BufferSlice
struct
Namespace: Orleans.Serialization.Buffers
Represents a slice of a
PooledBuffer. public readonly struct BufferSliceConstructors
BufferSlice(PooledBuffer, int, int)Initializes a new instance of theBufferSlicetype.
Properties
BufferGets the underlyingPooledBuffer.LengthGets the length of this slice.MemorySegmentsReturns an enumerator which can be used to enumerate the data referenced by this instance.OffsetGets the offset into the underlying buffer at which this slice begins.
Methods
CopyTo(Span<byte>)Copies the contents of this writer to a span.CopyTo(PooledBuffer)Copies the contents of this writer to a pooled buffer.CopyTo(TBufferWriter)Copies the contents of this writer to a buffer writer.GetEnumeratorReturns an enumerator which can be used to enumerate the data referenced by this instance.Slice(int)Forms a slice out of this instance, beginning at the specified offset into this slice.Slice(int, int)Forms a slice out of this instance, beginning at the specified offset into this slice and having the specified length.ToArrayReturns the data which has been written as an array.
