I am moving this to the C/C++ Forum.
Padding is a term applied to the alignment of the variables in your code. Most compilers align on an int boundary. If you have a struct:
-
struct test
-
{
-
int a;
-
char b;
-
int c;
-
};
-
the compiler will align the ints on an int boundary. To do that, three pad bytes will be inserted after member b. Normally, you need no worry about padding as it is handled internally by the compiler.