Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UploadHandlerRaw

General constructor. Contents of the input argument are copied into a native buffer.
Read time 1 minuteLast updated 6 days ago

Definition

UploadHandlerRaw(byte[])

General constructor. Contents of the
input
argument are copied into a native buffer.
public UploadHandlerRaw(byte[] data)

Parameters

data

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.

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.

UploadHandlerRaw(ReadOnly)

General constructor. Contents of the
input
argument are copied into a native buffer.
public UploadHandlerRaw(NativeArray<byte>.ReadOnly data)

Parameters

Raw data to transmit to the remote server.