Version: 2023.2

UploadHandlerRawConstructor

切换到手册
public UploadHandlerRaw (byte[] data);

参数

data 要传输到远程服务器的原始数据。

描述

一般构造函数。将 input 参数的内容复制到原生缓冲区。


public UploadHandlerRaw (NativeArray<byte> data, bool transferOwnership);

参数

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.


public UploadHandlerRaw (ReadOnly<byte> data);

参数

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.