Skip to content

BufferSlice

struct

Namespace: Orleans.Serialization.Buffers

Represents a slice of a PooledBuffer.
public readonly struct BufferSlice

Constructors

Properties

  • Buffer Gets the underlying PooledBuffer.
  • Length Gets the length of this slice.
  • MemorySegments Returns an enumerator which can be used to enumerate the data referenced by this instance.
  • Offset Gets 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.
  • GetEnumerator Returns 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.
  • ToArray Returns the data which has been written as an array.