Constructor NativeStream
NativeStream(int, AllocatorHandle)
Initializes and returns an instance of NativeStream.
Declaration
public NativeStream(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. |