Method ReadBytesUnsafe
ReadBytesUnsafe(ref DataStreamReader, byte*, int)
Read and copy data to the memory location pointed to, an error will
be logged if the length
will put the reader out of bounds on the current read pointer.
Declaration
public static void ReadBytesUnsafe(this ref DataStreamReader reader, byte* data, int length)
Parameters
Type | Name | Description |
---|---|---|
DataStreamReader | reader | Data stream reader. |
byte* | data | Pointer to the data. |
int | length | Number of bytes to read. |