# ReadULong()

> Reads an 8-byte unsigned long from the stream and advances the current position of the stream by eight bytes.

## Definition

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

```csharp
public ulong ReadULong()
```

### Returns

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