RingBuffer
(
capacity
)
|
Allocates and initialises the buffer
Signature
Oculus.Interaction.RingBuffer< T >.RingBuffer(int capacity) Parameters capacity: intÂ
The length of the buffer
|
Capacity
: int |
Signature
int Oculus.Interaction.RingBuffer< T >.Capacity |
Count
: int |
Signature
int Oculus.Interaction.RingBuffer< T >.Count |
this[int index]
: T
[Get] |
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>
Signature
T Oculus.Interaction.RingBuffer< T >.this[int index] |
Add
(
item
)
|
Inserts a value in the next entry of the buffer.
It overwrites the value already present there.
Signature
void Oculus.Interaction.RingBuffer< T >.Add(T item) Parameters item: TÂ
The value to set
Returns voidÂ
The element at the specified index in the buffer.
|
Clear
()
|
Initialises the buffer
Signature
void Oculus.Interaction.RingBuffer< T >.Clear() Returns void |
Peek
(
offset
)
|
Signature
T Oculus.Interaction.RingBuffer< T >.Peek(int offset=0) Parameters offset: intReturns T |