![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cQueue.h>
Public Member Functions | |
| cQueueRead (const TYPE *pData=nullptr, ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) noexcept | |
| ~cQueueRead () | |
| const TYPE * | get_ReadPtr () const |
| void | SetQueueRead (const TYPE *pData, ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) |
| TYPE | Read1 (void) |
| HRESULT | ReadPeek (TYPE *pData, ITERATE_t iDataMaxQty) |
| HRESULT | ReadQty (TYPE *pData, ITERATE_t iDataMaxQty) |
| void | ReadCommitNow () |
Public Member Functions inherited from Gray::cQueueBase | |
| cQueueBase (ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) noexcept | |
| void | InitQ (ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) noexcept |
| bool | isEmptyQ () const noexcept |
| void | EmptyQ () noexcept |
| ITERATE_t | get_ReadIndex () const noexcept |
| ITERATE_t | get_WriteIndex () const noexcept |
| ITERATE_t | get_ReadQty () const |
| void | AdvanceRead (ITERATE_t iCount=1) |
| STREAM_SEEKRET_t | SeekQ (STREAM_OFFSET_t iOffset, SEEK_ORIGIN_TYPE eSeekOrigin=SEEK_Set) |
Protected Attributes | |
| TYPE * | m_pData |
| NOT owned/managed block of memory I read from. not freed on destruct. More... | |
Protected Attributes inherited from Gray::cQueueBase | |
| ITERATE_t | m_iReadLast |
| old items removed/read from here. More... | |
| ITERATE_t | m_iWriteLast |
| new items added/written here. end of read. More... | |
a simple read only queue. un-managed memory
|
inlinenoexcept |
|
inline |
|
inline |
get start of data i could read directly. contiguous isEmptyQ() is OK, might be 0 length.
|
inline |
get a single TYPE element.
|
inline |
Prepare to read. move (read) data down to not waste space. allow more space for writing. commit the read = can't get the data back. Seek will fail.
|
inline |
|
inline |
Just read a block. like ReadX but for TYPE
|
inline |
|
protected |
NOT owned/managed block of memory I read from. not freed on destruct.