# ReadByte()

> Reads an unsigned byte from the current stream and advances the current position of the stream by one byte.

## Definition

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

```csharp
public byte ReadByte()
```

### Returns

| Type                                                       | Description                                                                                 |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [byte](https://learn.microsoft.com/dotnet/api/system.byte) | The next byte read from the current stream, or 0 if the end of the stream has been reached. |
