T | this[int index][Get] summary> Gets the element at a specified offset from the current head of the buffer. |
T Oculus.Interaction.RingBuffer< T >.this[int index] |
---|
summary> Gets the element at a specified offset from the current head of the buffer. It's useful for looking ahead or behind the buffer without altering its state. /summary> Parameters offset The offset from the head of the buffer. Defaults to 0. Returns The element at the calculated position based on the offset. |
Oculus.Interaction.RingBuffer< T >.RingBuffer ( int capacity, T defaultValue ) |
---|
Allocates and initialises the buffer. Parameters capacity The length of the buffer defaultValueThe initialisation value |
void Oculus.Interaction.RingBuffer< T >.Clear ( T clearValue ) |
---|
Initialises the buffer setting all values to the clear value. Parameters clearValue The value to set in all entries |
void Oculus.Interaction.RingBuffer< T >.Add ( T item ) |
---|
Inserts a value in the next entry of the buffer. It overwrites the value already present there. Parameters
summary> This indexer method provides read-only access to elements in the buffer. /summary> item The value to set Parameters index The index of the element to access. Returns The element at the specified index in the buffer. |
T Oculus.Interaction.RingBuffer< T >.Peek ( int offset ) |
---|
No description available.
|