# MemoryBinaryReader(byte*, long)

> Initializes and returns an instance of MemoryBinaryReader.

## Definition

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

```csharp
public MemoryBinaryReader(byte* content, long length)
```

### Parameters

**** (\[byte\*]\(https\://learn.microsoft.com/dotnet/api/system.byte)): A pointer to the data to read.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The length of the data to read.
