From 36c832d455f19fb1fa588ace2fb1746d00ddbf31 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 12 May 2009 07:07:17 +0000 Subject: Added a startOffset parameter to hexdump() (used by SCI's own hexdump method) svn-id: r40470 --- common/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/util.cpp') diff --git a/common/util.cpp b/common/util.cpp index 75f7f82efa..787e0736f9 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -91,11 +91,11 @@ String StringTokenizer::nextToken() { // // Print hexdump of the data passed in // -void hexdump(const byte * data, int len, int bytesPerLine) { +void hexdump(const byte * data, int len, int bytesPerLine, int startOffset) { assert(1 <= bytesPerLine && bytesPerLine <= 32); int i; byte c; - int offset = 0; + int offset = startOffset; while (len >= bytesPerLine) { printf("%06x: ", offset); for (i = 0; i < bytesPerLine; i++) { -- cgit v1.2.3