Lines Matching refs:header
53 tHeader* header = mQueue.front(); in ~DataQueue() local
55 free(header); in ~DataQueue()
84 tHeader* header = (tHeader*)malloc(sizeof(tHeader) + dataLen); in enqueue() local
86 if (header) { in enqueue()
87 memset(header, 0, sizeof(tHeader)); in enqueue()
88 header->mDataLen = dataLen; in enqueue()
89 memcpy(header + 1, data, dataLen); in enqueue()
91 mQueue.push_back(header); in enqueue()
117 tHeader* header = mQueue.front(); in dequeue() local
120 if (header && buffer && (bufferMaxLen > 0)) { in dequeue()
121 if (header->mDataLen <= bufferMaxLen) { in dequeue()
123 actualLen = header->mDataLen; in dequeue()
124 char* src = (char*)(header) + sizeof(tHeader) + header->mOffset; in dequeue()
128 free(header); in dequeue()
132 char* src = (char*)(header) + sizeof(tHeader) + header->mOffset; in dequeue()
135 header->mDataLen -= actualLen; in dequeue()
136 header->mOffset += actualLen; in dequeue()