# FixedSizeBuffer

Package: [Microsoft.Orleans.Streaming](/orleans/docs/api/csharp/microsoft.orleans.streaming/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/PooledCache/FixedSizeBuffer.cs#L10)

```csharp
public class FixedSizeBuffer : PooledResource<FixedSizeBuffer>
```

Manages a contiguous block of memory. Calls purge action with itself as the purge request when it's signaled to purge.

## Constructors

- [FixedSizeBuffer(int)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.fixedsizebuffer/constructors/constructor-int-ba4ec449/)

## Properties

- [Id](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.fixedsizebuffer/properties/id-0b921819/)

## Methods

- [OnResetState](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.fixedsizebuffer/methods/onresetstate-5f71f365/)
- [TryGetSegment(int, ArraySegment&lt;byte&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.fixedsizebuffer/methods/trygetsegment-int-out-system-arraysegment-byte-c8cd016f/)

## Fields

- [SizeInByte](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.fixedsizebuffer/fields/sizeinbyte-05361118/)
