# GetBitsRead()

> Gets the number of bits read from the data stream.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public int GetBitsRead()
```

### Returns

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