* charThe character store space is one byte.* 16Each character in the decimal system needs to be represented by a 4-bit binary, 0x0 0000, 0xf 1111, or a hexadecimal number of 4 bits.* For example, 42 4D38 04 04 00 00 00 00 00 36 04 00 00,Every two hexadecimal digits are separated, meaning: because one hexadecimal digit is 4 digits, two are 8 digits, or 1 byte, so here is 14 bytes, in bytes, easy to count* * BEFORE DECODE (16 bytes) AFTER DECODE (13 bytes) * +------+--------+------+----------------+ +------+----------------+ * | HDR1 | Length | HDR2 | Actual Content |----->| HDR2 | Actual Content | * | 0xCA | 0x000C | 0xFE | "HELLO, WORLD" | | 0xFE | "HELLO, WORLD" | * +------+--------+------+----------------+ +------+----------------+
* In ASCII codes, an English letter (case-insensitive) takes up one byte of space, and a Chinese character takes up two bytes of space.* English punctuation takes up one byte, and Chinese punctuation takes two bytes.* new byte[1024 * 4]; 4KSize