# BurstableMemoryBinaryReader

> Provides a reader compatible with the Burst compiler that can read primitive types from a binary buffer in memory.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities.Serialization](/engine/7000.0/script-reference/unity/entities/serialization.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [BinaryReader](/engine/7000.0/script-reference/unity/entities/serialization/binaryreader.md), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct BurstableMemoryBinaryReader : BinaryReader, IDisposable
```

## Remarks

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

## Constructors

| Constructor                                                                                                                                                 | Description                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [BurstableMemoryBinaryReader(System.Byte\*,System.Int64)](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/ctor.md) | Initializes and returns an instance of BurstableMemoryBinaryReader. |

## Properties

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

## Methods

| Method                                                                                                             | Description                                                                                         |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/dispose.md)     | Disposes the MemoryBinaryReader.                                                                    |
| [ReadByte](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/readbyte.md)   | Reads a byte and advances the current read position by a byte.                                      |
| [ReadBytes](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/readbytes.md) | Reads the specified number of bytes and advances the current read position by that number of bytes. |
| [ReadInt](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/readint.md)     | Reads an int and advances the current read position by the number of bytes in an int.               |
| [ReadULong](/engine/7000.0/script-reference/unity/entities/serialization/burstablememorybinaryreader/readulong.md) | Reads an ulong and advances the current read position by the number of bytes in an ulong.           |
