# ReadUnsafePtr(int)

> Returns a pointer to the next position to read from the buffer. Advances the reader some number of bytes.

## Definition

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

```csharp
public byte* ReadUnsafePtr(int size)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of bytes to advance the reader.

### Returns

| Type                                                         | Description                                             |
| ------------------------------------------------------------ | ------------------------------------------------------- |
| [byte\*](https://learn.microsoft.com/dotnet/api/system.byte) | A pointer to the next position to read from the buffer. |
