Lines Matching refs:head
83 PackHead *head = reinterpret_cast<PackHead *>(buf);
84 CHKPB(head);
85 if ((static_cast<int32_t>(head->size) < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) {
87 "head->size:%{public}d, residualSize:%{public}d", head->size, residualSize);
91 if (head->size > dataSize) {
94 NetPacket pkt(head->idMsg);
95 if ((head->size > 0) && (!pkt.Write(&buf[headSize], head->size))) {
97 "size:%{public}d", head->idMsg, head->size);