# BufferSlice.BufferSlice(PooledBuffer, int, int)

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

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

```csharp
public BufferSlice(in PooledBuffer buffer, int offset, int length)
```

Initializes a new instance of the [BufferSlice](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.pooledbuffer.bufferslice/) type.

### Parameters

- `buffer` (`PooledBuffer`): The buffer.
- `offset` (`int`): The offset into the buffer at which this slice begins.
- `length` (`int`): The length of this slice.
