Tanoda
Leap.Unity.DelayBuffer< T > Class Template Reference

Public Member Functions

void Clear ()
 
 DelayBuffer (int bufferSize)
 
bool Add (T t, out T delayedT)
 Returns true if the buffer was full and out "delayedT" will contain the oldest value in the buffer, otherwise returns false. More...
 

Properties

RingBuffer< T > Buffer [get]
 Returns the underlying Buffer object. More...
 
int Count [get]
 
bool IsFull [get]
 
bool IsEmpty [get]
 
int Capacity [get]
 

Detailed Description

Definition at line 11 of file DelayBuffer.cs.

Constructor & Destructor Documentation

◆ DelayBuffer()

Leap.Unity.DelayBuffer< T >.DelayBuffer ( int  bufferSize)

Definition at line 28 of file DelayBuffer.cs.

Member Function Documentation

◆ Add()

bool Leap.Unity.DelayBuffer< T >.Add ( t,
out T  delayedT 
)

Returns true if the buffer was full and out "delayedT" will contain the oldest value in the buffer, otherwise returns false.

Definition at line 34 of file DelayBuffer.cs.

◆ Clear()

void Leap.Unity.DelayBuffer< T >.Clear ( )

Definition at line 26 of file DelayBuffer.cs.

Property Documentation

◆ Buffer

RingBuffer<T> Leap.Unity.DelayBuffer< T >.Buffer
get

Returns the underlying Buffer object.

Definition at line 16 of file DelayBuffer.cs.

◆ Capacity

int Leap.Unity.DelayBuffer< T >.Capacity
get

Definition at line 24 of file DelayBuffer.cs.

◆ Count

int Leap.Unity.DelayBuffer< T >.Count
get

Definition at line 18 of file DelayBuffer.cs.

◆ IsEmpty

bool Leap.Unity.DelayBuffer< T >.IsEmpty
get

Definition at line 22 of file DelayBuffer.cs.

◆ IsFull

bool Leap.Unity.DelayBuffer< T >.IsFull
get

Definition at line 20 of file DelayBuffer.cs.


The documentation for this class was generated from the following file: