Another Method to Embed Binary Resources in C/C++ Source Code: Escaped Strings

When binary resources such as fonts, images, and sounds are needed in C/C++ source programs, the most common method is to use various tools to convert the required resources into hexadecimal arrays, like this: const uint8_t xxx[]={ 0x00,0x11,0x22,0x33,…}; The advantage is that it is intuitive and does not require additional operations, but the downside is … Read more