I help my a workmate write a test program which is a apache module. She told me that there is a strange phenomenon, the size of data her program received is lager than the size of data my module sent out.
It is from word alignment. For example, there are two unsigned char data item. The CPU deals with them as
a word, four bytes, not two bytes. If they are filled 1, they must be followed two bytes zeros.
So, her program must deal with those surplus zeros.
The remainder work is fill lots of structures. I have to write many a function individullay for every
structure
It is from word alignment. For example, there are two unsigned char data item. The CPU deals with them as
a word, four bytes, not two bytes. If they are filled 1, they must be followed two bytes zeros.
So, her program must deal with those surplus zeros.
The remainder work is fill lots of structures. I have to write many a function individullay for every
structure