data | Raw data to transmit to the remote server. |
General constructor. Contents of the input
argument are copied into a native buffer.
data | The raw data to transmit to the remote server. |
transferOwnership | When true, the upload handler takes ownership of the passed NativeArray. This means the upload handler will dispose of the NativeArray when the upload handler itself is disposed of. When false, NativeArray is owned by the caller and you must ensure it remains valid until the upload is complete. |
Creates an upload handler using NativeArray.
data | The raw data to transmit to the remote server. |
Creates an upload handler using a read-only NativeArray. The passed array is owned by the caller and you must ensure it remains valid until the upload is complete.