# BinaryReader

> An interface that reads primitive types from a binary buffer.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.Entities.Serialization](/engine/7000.0/script-reference/unity/entities/serialization.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public interface BinaryReader : IDisposable
```

## Remarks

Additional Resources: [MemoryBinaryReader](/engine/7000.0/script-reference/unity/entities/serialization/memorybinaryreader.md)

## Properties

| Property                                                                                          | Description                                                 |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [Position](/engine/7000.0/script-reference/unity/entities/serialization/binaryreader/position.md) | Gets or sets the current read position of the BinaryReader. |

## Methods

| Method                                                                                              | Description                          |
| --------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [ReadBytes](/engine/7000.0/script-reference/unity/entities/serialization/binaryreader/readbytes.md) | Reads the specified number of bytes. |

## Inheritance

**Inherited Members:**

* [IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)
