![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Private Member Functions | |
| void | SimpleCircularBuffer (int pSize, T pDefaultValue) |
| Initialize Simple Circular Buffer Cyclic Buffer. | |
| void | Add (T newSample) |
| Add new value to buffer. | |
| T | Get (int pIndex) |
| Returns value from given index. | |
| array< T > | GetValues () |
| Returns array of values stored in buffer. | |
Private Attributes | |
| int | m_Pointer = 0 |
| ref array< T > | m_Samples = new array<T>() |
| int | m_Size = 0 |
Definition at line 1 of file simplecircularbuffer.c.
|
inlineprivate |
Initialize Simple Circular Buffer Cyclic Buffer.
| pSize | size of the buffer |
| pDefaultValue | initial value stored in buffer |
Definition at line 12 of file simplecircularbuffer.c.
|
inlineprivate |
Add new value to buffer.
| newSample | value that will be added to buffer |
Definition at line 29 of file simplecircularbuffer.c.
|
inlineprivate |
Returns value from given index.
| pIndex | size of the buffer |
Definition at line 40 of file simplecircularbuffer.c.
References m_Samples.
|
inlineprivate |
Returns array of values stored in buffer.
| pIndex | size of the buffer |
Definition at line 49 of file simplecircularbuffer.c.
References m_Samples.
|
private |
Definition at line 3 of file simplecircularbuffer.c.
Referenced by Add().
Definition at line 5 of file simplecircularbuffer.c.
Referenced by SimpleCircularBuffer(), Add(), Get(), and GetValues().
|
private |
Definition at line 4 of file simplecircularbuffer.c.
Referenced by SimpleCircularBuffer(), and Add().