# GetNativeData()

> Provides allocation-free access to the downloaded data as a NativeArray.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.7/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

```csharp
protected virtual NativeArray<byte> GetNativeData()
```

### Returns

| Type                                                                                    | Description                                      |
| --------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [NativeArray\<byte>](/engine/6000.7/script-reference/unity/collections/nativearray1.md) | NativeArray providing access to downloaded data. |

### Remarks

The data is owned by the download handler and memory is released when the download handler is disposed. The returned NativeArray is read-only.
