Off-the-Shelf C++ Hex Dump Code
问题 I work a lot with network and serial communications software, so it is often necessary for me to have code to display or log hex dumps of data packets. Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dump code for C++ out there somewhere? Features I'd like: N bytes per line (where N is somehow configurable) optional ASCII/UTF8 dump alongside the hex configurable indentation, per-line