Skip to content

PooledBuffer.Slice(int, int)

Slice(int, int)

View source
public readonly BufferSlice Slice(int offset, int length)
Returns a slice of this buffer, beginning at the specified offset and having the specified length.

Parameters

offsetint
lengthint

Returns

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