DDraceNetwork Docs
|
#include <ringbuffer.h>
Public Member Functions | |
CDynamicRingBuffer (int Size, int Flags=0) | |
virtual | ~CDynamicRingBuffer () |
void | Init (int Size, int Flags) |
Public Member Functions inherited from CTypedRingBuffer< T > | |
T * | Allocate (int Size) |
int | PopFirst () |
void | SetPopCallback (std::function< void(T *pCurrent)> PopCallback) |
T * | Prev (T *pCurrent) |
T * | Next (T *pCurrent) |
T * | First () |
T * | Last () |
Private Attributes | |
unsigned char * | m_pBuffer = nullptr |
Additional Inherited Members | |
Public Types inherited from CRingBufferBase | |
enum | { FLAG_RECYCLE = 1 } |
Static Public Attributes inherited from CRingBufferBase | |
static constexpr int | ITEM_SIZE = sizeof(CItem) |
Protected Member Functions inherited from CRingBufferBase | |
void * | Allocate (int Size) |
void * | Prev (void *pCurrent) |
void * | Next (void *pCurrent) |
void * | First () |
void * | Last () |
void | Init (void *pMemory, int Size, int Flags) |
int | PopFirst () |
void | SetPopCallback (const std::function< void(void *pCurrent)> PopCallback) |
|
inline |
|
inlinevirtual |
|
inline |
|
private |