Lines Matching refs:header
57 tHeader* header = mQueue.front (); in ~DataQueue() local
59 free (header); in ~DataQueue()
93 tHeader* header = (tHeader*) malloc (sizeof(tHeader) + dataLen); in enqueue() local
95 if (header) in enqueue()
97 memset (header, 0, sizeof(tHeader)); in enqueue()
98 header->mDataLen = dataLen; in enqueue()
99 memcpy (header+1, data, dataLen); in enqueue()
101 mQueue.push_back (header); in enqueue()
130 tHeader* header = mQueue.front (); in dequeue() local
133 if (header && buffer && (bufferMaxLen>0)) in dequeue()
135 if (header->mDataLen <= bufferMaxLen) in dequeue()
138 actualLen = header->mDataLen; in dequeue()
139 char* src = (char*)(header) + sizeof(tHeader) + header->mOffset; in dequeue()
143 free (header); in dequeue()
149 char* src = (char*)(header) + sizeof(tHeader) + header->mOffset; in dequeue()
152 header->mDataLen -= actualLen; in dequeue()
153 header->mOffset += actualLen; in dequeue()