Constructor UnsafePayloadRingBuffer
UnsafePayloadRingBuffer(uint, byte, Allocator)
Initializes a new instance of the container.
Declaration
public UnsafePayloadRingBuffer(uint capacity, byte bufferId, Allocator allocator = Allocator.Persistent)
Parameters
Type | Name | Description |
---|---|---|
uint | capacity | Size of the container in bytes, must be in the range of MinimumCapacity and MaximumCapacity. |
byte | bufferId | User specified value that identifies this instance. |
Allocator | allocator | Memory pool to allocate the containers from. |