I need to pack a number in 1byte (char), 2 bytes (short), 4 bytes (int) and 8 bytes (long) formats and apply bitwise operator ~ (not). For these needs I use