Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My preferred way to make a "magic" constant has been using base64. For example, 0x31a82270 maps to base64 `MagicA==`. This approach is most useful when the magic constant itself shouldn't be obviously ASCII but still should be meaningful enough.


too bad pointer alignment isn't visible in a base64 dump of memory




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: