# BufferSlice Constructors

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

## BufferSlice(PooledBuffer, int, int) {#constructor-in-orleans-serialization-buffers-pooledbuffer-int-int-f0f3aeda}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.pooledbuffer.bufferslice/constructors/constructor-in-orleans-serialization-buffers-pooledbuffer-int-int-f0f3aeda/)

[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.
