21 #ifndef COMMON_RPC_STREAMRPCHEADER_H_
22 #define COMMON_RPC_STREAMRPCHEADER_H_
40 *header = (version << 28) & VERSION_MASK;
41 *header |= size & SIZE_MASK;
49 *version = (header & VERSION_MASK) >> 28;
50 *size = header & SIZE_MASK;
54 static const unsigned int VERSION_MASK = 0xf0000000;
55 static const unsigned int SIZE_MASK = 0x0fffffff;
59 #endif // COMMON_RPC_STREAMRPCHEADER_H_