Method ReadBytes
ReadBytes(byte*, int)
Read the requested number of bytes to the given pointer.
Declaration
public void ReadBytes(byte* data, int length)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Pointer to write the data to. |
int | length | Number of bytes to read. |
ReadBytes(NativeArray<byte>)
Read and copy data into the given NativeArray of bytes. The number of bytes read is the length of the provided array.
Declaration
public void ReadBytes(NativeArray<byte> array)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte> | array | Array to read the data into. |