Method WriteBytes
WriteBytes(byte*, int, int)
Write multiple bytes to the stream
Declaration
public void WriteBytes(byte* value, int size, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
byte* | value | Value to write |
int | size | Number of bytes to write |
int | offset | Offset into the buffer to begin writing |
WriteBytes(byte[], int, int)
Write multiple bytes to the stream
Declaration
public void WriteBytes(byte[] value, int size = -1, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
byte[] | value | Value to write |
int | size | Number of bytes to write |
int | offset | Offset into the buffer to begin writing |
WriteBytes(NativeArray<byte>, int, int)
Write multiple bytes to the stream
Declaration
public void WriteBytes(NativeArray<byte> value, int size = -1, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte> | value | Value to write |
int | size | Number of bytes to write |
int | offset | Offset into the buffer to begin writing |
WriteBytes(NativeList<byte>, int, int)
Write multiple bytes to the stream
Declaration
public void WriteBytes(NativeList<byte> value, int size = -1, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
NativeList<byte> | value | Value to write |
int | size | Number of bytes to write |
int | offset | Offset into the buffer to begin writing |