# WriteByte(byte)

> Writes an unsigned byte to the current stream and advances the stream position by one byte.

## Definition

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

```csharp
public bool WriteByte(byte value)
```

### Parameters

**** (\[byte]\(https\://learn.microsoft.com/dotnet/api/system.byte)): The unsigned byte to write.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the write was successful |
