# GetUnsafeReadOnlyPtr(ref DataStreamReader)

> Get a pointer to the stream's data. Note that the pointer always points at the beginning of the data, no matter how much was read from the stream.

## Definition

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

## GetUnsafeReadOnlyPtr(DataStreamReader)

```csharp
public static void* GetUnsafeReadOnlyPtr(this ref DataStreamReader reader)
```

### Parameters

**** (\[DataStreamReader]\(/engine/6000.7/script-reference/unity/collections/datastreamreader)): Data stream reader.

### Returns

| Type                                                         | Description                     |
| ------------------------------------------------------------ | ------------------------------- |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | A pointer to the stream's data. |

### Remarks

Performs a job safety check for read-only access.
