Header compression
Hi right now I am trying to compress Real time protocol (RTP) headers ( which are attached to packets. I created a struct :
struct cRTPHeader
{
u_int32_t timestamp ;
u_int16_t sequencenumber ;
};
when i used the function sizeof (cRTPHeader) i get the size to be 8 bytes , however i actually expect 6 bytes based on 32bits + 16bits = 6 Bytes
| |
| |
int32 int16
Is there something wrong with my logic or is there something i should know about the sizeof() function
Thanx in Advance
|