Skip to content

Instantly share code, notes, and snippets.

@Reputeless
Created October 24, 2014 06:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Reputeless/668ce6802a57fe8db295 to your computer and use it in GitHub Desktop.
# include <Siv3D.hpp>
void Main()
{
unsigned char data[16];
BinaryReader(L"Example/Windmill.png").read(data, sizeof(data));
TextWriter writer(L"result.txt");
for (const auto& x : data)
{
writer.write(Pad(IntegerU8(x).hex, { 2, L'0' }) + L' ');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment