SitesLinksOttawaLifePhotosTravelToolsJournalBlog
See More Stuff

ASCII Hex to C++ Literal


Do you ever have a blob of HEX that you want to get into a c++ buffer?
const char* blob = "\x41\x53\x43\x49\x49";
This makes that easier. It also gives you the count in case you're passing it to a (ptr,len) method.
Note that all white-space from the HEX box will be ignored.