# ReadLong()

> Reads an 8-byte signed 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 long ReadLong()
```

### Returns

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