Method WriteBytes
WriteBytes(byte*, int)
Writes a byte array (as pointer and length) to the stream.
Declaration
public bool WriteBytes(byte* data, int bytes)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Pointer to the array. |
int | bytes | Length of the array. |
Returns
Type | Description |
---|---|
bool | Whether the write was successful |
WriteBytes(NativeArray<byte>)
Copy NativeArray of bytes into the writers 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 |