Lines Matching defs:hdr
81 CRMessageOpcodes *hdr;
90 hdr = (CRMessageOpcodes *)
91 ( buf->data_start - ( ( num_opcodes + 3 ) & ~0x3 ) - sizeof(*hdr) );
93 CRASSERT( (void *) hdr >= buf->pack );
97 hdr->header.type = (CRMessageType) SWAP32(CR_MESSAGE_OPCODES);
98 hdr->numOpcodes = SWAP32(num_opcodes);
102 hdr->header.type = CR_MESSAGE_OPCODES;
103 hdr->numOpcodes = num_opcodes;
106 *len = buf->data_current - (unsigned char *) hdr;
108 return hdr;
121 CRMessageOpcodes *hdr;
159 hdr = __prependHeader( buf, &len, 0 );
166 crNetBarf( thread->netServer.conn, &(buf->pack), hdr, len );
171 crNetSend( thread->netServer.conn, &(buf->pack), hdr, len );