Constructor UnsafeStream
UnsafeStream(int, AllocatorHandle)
Initializes and returns an instance of UnsafeStream.
Declaration
public UnsafeStream(int bufferCount, AllocatorManager.AllocatorHandle allocator)
Parameters
Type | Name | Description |
---|---|---|
int | bufferCount | The number of buffers to give the stream. You usually want one buffer for each thread that will read or write the stream. |
AllocatorManager.AllocatorHandle | allocator | The allocator to use. |