WriteBytes
Copy NativeArray of bytes into the writer's data buffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
WriteBytes(NativeArray<byte>)
Copy NativeArray of bytes into the writer's data buffer.
public bool WriteBytes(NativeArray<byte> value)
Parameters
Source byte array
Returns
Type | Description |
|---|---|
| bool | Whether the write was successful |
WriteBytes(Span<byte>)
Copy of bytes into the writer's data buffer.
Spanpublic bool WriteBytes(Span<byte> value)
Parameters
Source byte span
Returns
Type | Description |
|---|---|
| bool | Whether the write was successful |