Skip to content

Instantly share code, notes, and snippets.

View Supermilkycow's full-sized avatar
🦁
Grrrrr

Zheng Zuo Supermilkycow

🦁
Grrrrr
  • Adelaide
View GitHub Profile
@Supermilkycow
Supermilkycow / hexdump.cpp
Created June 7, 2018 16:06
Format Outputdebugstring
void DumpHex(const void* data, size_t size)
{
char ascii[17];
size_t i, j;
ascii[16] = '\0';
char line_buffer[4096];
memset(line_buffer, 0, 4096);
for (i = 0; i < size; ++i)