# Reader&lt;TInput&gt;.EnsureAvailable(uint)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.reader-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.reader-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/cae2fb6caf3ce98e8f8535e6ff40f6719acc8bd6/src/Orleans.Serialization/Buffers/Reader.cs#L487-L492)

```csharp
public void EnsureAvailable(uint count)
```

Throws if fewer than `count` bytes remain in the input.

### Parameters

- `count` (`uint`): The number of bytes which are required.
