12 #ifdef epicsExportSharedSymbols 13 # define hexDumpEpicsExportSharedSymbols 14 # undef epicsExportSharedSymbols 17 #include <pv/pvType.h> 19 #ifdef hexDumpEpicsExportSharedSymbols 20 # define epicsExportSharedSymbols 21 # undef hexDumpEpicsExportSharedSymbols 32 class epicsShareClass HexDump {
39 HexDump(
const char* buf, size_t len);
40 explicit HexDump(
const pvData::ByteBuffer& buf, size_t size=(size_t)-1, size_t offset=0u);
44 inline HexDump& limit(size_t n=(size_t)-1) { _limit = n;
return *
this; }
46 inline HexDump& bytesPerGroup(size_t n=(size_t)-1) { _groupBy = n;
return *
this; }
48 inline HexDump& bytesPerLine(size_t n=(size_t)-1) { _perLine = n;
return *
this; }
51 friend std::ostream& operator<<(std::ostream& strm,
const HexDump& hex);
55 std::ostream& operator<<(std::ostream& strm,
const HexDump& hex);