Constructor DataStreamReader
DataStreamReader(NativeArray<byte>)
Initializes a new instance of the DataStreamReader struct with a NativeArray<byte>.
Declaration
public DataStreamReader(NativeArray<byte> array)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<byte> | array | The buffer to attach to the DataStreamReader. |
DataStreamReader(byte*, int)
Initializes a new instance of the DataStreamReader struct with a pointer and length.
Declaration
public DataStreamReader(byte* data, int length)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Pointer to the buffer to attach to the DataStreamReader. |
int | length | Length of the buffer to attach to the DataStreamReader. |