5 ms·
What about the opposite, embedding PNG files into source code?
by netr0ute 5y ago
What about the opposite, embedding PNG files into source code?
- blacksmith_tb 5y agoWell, that's not exactly novel[1], though it can be handy. 1: https://png-pixel.com/ https://png-pixel.com/
- rmbyrro 5y agoWell, isn't it the binary representation of the PNG already?
- colejohnson66 5y agoIIRC, HolyC from TempleOS could embed arbitrary files into a source file.
- shakna 5y agoxxd can out put any random set of bytes as C code. For example: > xxd -i tmp.f unsigned char tmp_f[] = { 0x38, 0x4a, 0x39, 0x6f, 0x61 }; unsigned int tmp_f_len = 5; I use it as part of a number of build scripts.