Struct NativeCircularBuffer Extends IReadOnlyList<T>, IReadOnlyCollection<T>
Implements an efficient circular buffer that can be appended to in both directions.
Public Methods
Removes toRemove items from the buffer, starting at startIndex, and then inserts the toInsert items at startIndex.
Like Splice, but the newly inserted items are left in an uninitialized state.
Like SpliceUninitialized, but startIndex is an absolute index.
Lowers the length of the buffer to the given value, and does nothing if the given value is greater or equal to the current length.
Public Variables
Absolute index of the last item in the buffer, may be negative or greater than Length.
Absolute index of the first item in the buffer, may be negative or greater than Length.
The allocator used to create the internal buffer.
First item in the buffer throws if the buffer is empty.
Last item in the buffer, throws if the buffer is empty.
Number of items in the buffer.
Capacity of the allocation minus 1.
Indexes the buffer, with index 0 being the first element.