# PooledBufferStream Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.pooledbufferstream/)

## PooledBufferStream {#constructor-583c2253}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.pooledbufferstream/constructors/constructor-583c2253/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/Adaptors/PooledBufferStream.cs#L25-L26)

```csharp
public PooledBufferStream()
```

Initializes a new instance of the [PooledBufferStream](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.pooledbufferstream/) class.

## PooledBufferStream(int) {#constructor-int-ba3afe04}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.pooledbufferstream/constructors/constructor-int-ba3afe04/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/Adaptors/PooledBufferStream.cs#L32-L37)

```csharp
public PooledBufferStream(int minAllocationSize = 0)
```

Initializes a new instance of the [PooledBufferStream](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.adaptors.pooledbufferstream/) class.

### Parameters

- `minAllocationSize` (`int`): Minimum size of the allocation.
