40 if (
NULL != this->queue) {
46 this->msgSize = msgSize;
48 return this->initialize(depth, msgSize);
59 bool ret = enqueue(buffer, size, priority);
66 if( this->count > this->maxCount ) {
67 this->maxCount = this->count;
80 bool ret = dequeue(buffer, size, priority);
92 return (this->count == this->depth);
96 return (this->count == 0);
104 return this->maxCount;
109 return this->msgSize;
117 return (index % this->depth) * (
sizeof(
NATIVE_INT_TYPE) + this->msgSize);
122 void* dest = &data[index];
123 void* ptr = memcpy(dest, &size,
sizeof(size));
127 index +=
sizeof(size);
129 ptr = memcpy(dest, buffer, size);
136 void* source = &data[index];
137 void* ptr = memcpy(&storedSize, source,
sizeof(size));
143 if(storedSize > size){
150 index +=
sizeof(size);
151 source = &data[index];
152 ptr = memcpy(buffer, source, storedSize);