UploadHandlerRaw
General constructor. Contents of the input argument are copied into a native buffer.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
UploadHandlerRaw(byte[])
General constructor. Contents of the argument are copied into a native buffer.
inputpublic 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)
General constructor. Contents of the argument are copied into a native buffer.
inputpublic UploadHandlerRaw(NativeArray<byte>.ReadOnly data)
Parameters
Raw data to transmit to the remote server.