# ReadInt()

> Reads an int and advances the current read position by the number of bytes in an int.

## Definition

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

```csharp
public int ReadInt()
```

### Returns

| Type                                                       | Description    |
| ---------------------------------------------------------- | -------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The read data. |
