| Parameter | Description |
|---|---|
| ptr | An existing buffer to set as the internal buffer. |
| capacity | The capacity. |
Initializes and returns an instance of UnsafeRingQueue which aliasing an existing buffer.
| Parameter | Description |
|---|---|
| capacity | The capacity. |
| allocator | The allocator to use. |
| options | Whether newly allocated bytes should be zeroed out. |
Initializes and returns an instance of UnsafeRingQueue.