Redigera

Dela via


PooledBuffer.Slice Method

Definition

Overloads

Slice()

Returns a PooledBuffer.BufferSlice covering this entire buffer.

Slice(Int32)

Returns a slice of this buffer, beginning at the specified offset.

Slice(Int32, Int32)

Returns a slice of this buffer, beginning at the specified offset and having the specified length.

Slice()

Returns a PooledBuffer.BufferSlice covering this entire buffer.

public readonly Orleans.Serialization.Buffers.PooledBuffer.BufferSlice Slice ();
member this.Slice : unit -> Orleans.Serialization.Buffers.PooledBuffer.BufferSlice
Public Function Slice () As PooledBuffer.BufferSlice

Returns

A PooledBuffer.BufferSlice covering this entire buffer.

Remarks

The lifetime of the returned PooledBuffer.BufferSlice must be shorter than the lifetime of this instance.

Applies to

Slice(Int32)

Returns a slice of this buffer, beginning at the specified offset.

public readonly Orleans.Serialization.Buffers.PooledBuffer.BufferSlice Slice (int offset);
member this.Slice : int -> Orleans.Serialization.Buffers.PooledBuffer.BufferSlice
Public Function Slice (offset As Integer) As PooledBuffer.BufferSlice

Parameters

offset
Int32

Returns

A slice representing a subset of this instance, beginning at the specified offset.

Remarks

The lifetime of the returned PooledBuffer.BufferSlice must be shorter than the lifetime of this instance.

Applies to

Slice(Int32, Int32)

Returns a slice of this buffer, beginning at the specified offset and having the specified length.

public readonly Orleans.Serialization.Buffers.PooledBuffer.BufferSlice Slice (int offset, int length);
member this.Slice : int * int -> Orleans.Serialization.Buffers.PooledBuffer.BufferSlice
Public Function Slice (offset As Integer, length As Integer) As PooledBuffer.BufferSlice

Parameters

offset
Int32
length
Int32

Returns

A slice representing a subset of this instance, beginning at the specified offset.

Remarks

The lifetime of the returned PooledBuffer.BufferSlice must be shorter than the lifetime of this instance.

Applies to