aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/stream.h')
-rw-r--r--common/stream.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h
index e0ffc47d7f..30107720dc 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -514,6 +514,15 @@ public:
* err() or eos() to determine whether an exception occurred.
*/
virtual String readLine();
+
+ /**
+ * Print a hexdump of the stream while maintaing position. The number
+ * of bytes per line is customizable.
+ * @param len the length of that data
+ * @param bytesPerLine number of bytes to print per line (default: 16)
+ * @param startOffset shift the shown offsets by the starting offset (default: 0)
+ */
+ void hexdump(int len, int bytesPerLine = 16, int startOffset = 0);
};
/**