| Parameter | Description |
|---|---|
| length | The number of bytes available in the buffer. |
| allocator | The Allocator used to allocate the memory. |
Initializes a new instance of the DataStreamWriter struct.
| Parameter | Description |
|---|---|
| data | The buffer to attach to the DataStreamWriter. |
Initializes a new instance of the DataStreamWriter struct with a NativeArray<byte>
| Parameter | Description |
|---|---|
| data | Pointer to the data |
| length | Length of the data |
Initializes a new instance of the DataStreamWriter struct with a memory we don't own