# BufferSlice.Slice(int, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.pooledbuffer.bufferslice/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.pooledbuffer.bufferslice/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/PooledBuffer.cs#L564)

```csharp
public BufferSlice Slice(int offset, int length)
```

Forms a slice out of this instance, beginning at the specified offset into this slice and having the specified length.

### Parameters

- `offset` (`int`): The offset into this slice where the newly formed slice will begin.
- `length` (`int`): The length of the new slice.

### Returns

A slice instance.
