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.
Read time 1 minuteLast updated 23 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
GetUnsafeReadOnlyPtr(DataStreamReader)
public static void* GetUnsafeReadOnlyPtr(this ref DataStreamReader reader)
Parameters
Data stream reader.
Returns
Type | Description |
|---|---|
| void* | A pointer to the stream's data. |
Remarks
Performs a job safety check for read-only access.