UploadHandlerRaw
General constructor. Contents of the input argument are copied into a native buffer.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
UploadHandlerRaw(byte[])
General constructor. Contents of the input argument are copied into a native buffer.
public UploadHandlerRaw(byte[] data)
Parameters
Raw data to transmit to the remote server.
UploadHandlerRaw(NativeArray<byte>, bool)
Creates an upload handler using NativeArray.
public UploadHandlerRaw(NativeArray<byte> data, bool transferOwnership)
Parameters
The raw data to transmit to the remote server.
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.
UploadHandlerRaw(ReadOnly)
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.
public UploadHandlerRaw(NativeArray<byte>.ReadOnly data)
Parameters
The raw data to transmit to the remote server.