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.
{ "url": "https:\/\/holtstrom.com\/michael\/", "base": "\/michael", "domain": "holtstrom.com", "loggedin": false, "avatar": "", "render": "nothing", "doTracking": true, "trackingID": "UA-36983794-1", "description": "Online conversion of an ASCII-HEX string to the format in which it can be pasted into C++ code as a string literal.", "tmdbUrl": "http:\/\/www.themoviedb.org\/", "tmdbPoster": "http:\/\/image.tmdb.org\/t\/p\/w342" }