#include "comQueRecv.h"
Definition at line 30 of file comQueRecv.h.
Definition at line 28 of file comQueRecv.cpp.
29 comBufMemMgr ( comBufMemoryManagerIn ), nBytesPending ( 0u )
comQueRecv::~comQueRecv |
( |
| ) |
|
void comQueRecv::clear |
( |
| ) |
|
Definition at line 38 of file comQueRecv.cpp.
41 while ( ( pBuf = this->bufs.
get () ) ) {
43 this->comBufMemMgr.
release ( pBuf );
45 this->nBytesPending = 0u;
virtual void release(void *)=0
unsigned comQueRecv::copyOutBytes |
( |
epicsInt8 * |
pBuf, |
|
|
unsigned |
nBytes |
|
) |
| |
Definition at line 48 of file comQueRecv.cpp.
50 unsigned totalBytes = 0u;
54 this->nBytesPending -= totalBytes;
57 totalBytes += pComBuf->
copyOutBytes ( &pBuf[totalBytes], nBytes - totalBytes );
59 this->bufs.
remove ( *pComBuf );
61 this->comBufMemMgr.
release ( pComBuf );
64 while ( totalBytes < nBytes );
65 this->nBytesPending -= totalBytes;
unsigned occupiedBytes() const
unsigned copyOutBytes(void *pBuf, unsigned nBytes)
virtual void release(void *)=0
unsigned comQueRecv::occupiedBytes |
( |
| ) |
const |
|
inline |
Definition at line 60 of file comQueRecv.h.
62 return this->nBytesPending;
Definition at line 82 of file comQueRecv.h.
89 for (
unsigned i = 0u;
i <
sizeof ( tmp._wire );
i++ ) {
Definition at line 97 of file comQueRecv.h.
104 for (
unsigned i = 0u;
i <
sizeof ( tmp._wire );
i++ ) {
Definition at line 230 of file comQueRecv.cpp.
238 if ( avail >=
sizeof (
caHdr ) ) {
241 pComBuf->
pop ( smallPostsize );
245 pComBuf->
pop ( smallCount );
249 this->nBytesPending -=
sizeof (
caHdr );
250 if ( avail ==
sizeof (
caHdr ) ) {
251 this->removeAndDestroyBuf ( *pComBuf );
unsigned short ca_uint16_t
unsigned occupiedBytes() const
unsigned occupiedBytes() const
Definition at line 95 of file comQueRecv.cpp.
97 for (
unsigned i = 0u;
i <
sizeof ( *pStr );
i++ ) {
Definition at line 192 of file comQueRecv.cpp.
204 this->removeAndDestroyBuf ( *pComBuf );
208 return this->multiBufferPopUInt16 ();
unsigned short epicsUInt16
static void throwInsufficentBytesException()
Definition at line 211 of file comQueRecv.cpp.
223 this->removeAndDestroyBuf ( *pComBuf );
227 return this->multiBufferPopUInt32 ();
static void throwInsufficentBytesException()
Definition at line 174 of file comQueRecv.cpp.
186 this->removeAndDestroyBuf ( *pComBuf );
188 this->nBytesPending--;
static void throwInsufficentBytesException()
void comQueRecv::pushLastComBufReceived |
( |
comBuf & |
bufIn | ) |
|
Definition at line 102 of file comQueRecv.cpp.
109 this->nBytesPending += pComBuf->
push ( bufIn );
115 this->nBytesPending += bufBytes;
116 this->bufs.
add ( bufIn );
120 this->comBufMemMgr.
release ( & bufIn );
unsigned occupiedBytes() const
unsigned unoccupiedBytes() const
virtual void release(void *)=0
unsigned comQueRecv::removeBytes |
( |
unsigned |
nBytes | ) |
|
Definition at line 69 of file comQueRecv.cpp.
71 unsigned totalBytes = 0u;
72 unsigned bytesLeft = nBytes;
76 this->nBytesPending -= totalBytes;
79 unsigned nBytesThisTime = pComBuf->
removeBytes ( bytesLeft );
81 this->bufs.
remove ( *pComBuf );
83 this->comBufMemMgr.
release ( pComBuf );
85 if ( nBytesThisTime == 0u) {
88 totalBytes += nBytesThisTime;
89 bytesLeft = nBytes - totalBytes;
91 this->nBytesPending -= totalBytes;
unsigned occupiedBytes() const
unsigned removeBytes(unsigned nBytes)
virtual void release(void *)=0
The documentation for this class was generated from the following files: