Method WriteBytes
WriteBytes(NativeArray<byte>)
Copy NativeArray of bytes into the writer's data buffer.
Declaration
public bool WriteBytes(NativeArray<byte> value)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<byte> | value | Source byte array |
Returns
| Type | Description |
|---|---|
| bool | Whether the write was successful |
WriteBytes(Span<byte>)
Copy Span of bytes into the writer's data buffer.
Declaration
public bool WriteBytes(Span<byte> value)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<byte> | value | Source byte span |
Returns
| Type | Description |
|---|---|
| bool | Whether the write was successful |