summaryrefslogtreecommitdiff
path: root/src/stream.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-23 16:01:07 -0700
committerGitHub <noreply@github.com>2017-06-23 16:01:07 -0700
commit72edc598a20d79d5d19caf7b397be4254a7d5fb8 (patch)
treeb0796f1d935253fe9b957ea675855c57a43ec5df /src/stream.h
parent9dffec8454edbc4830d764ab5b0ff6c531cfd47e (diff)
downloadwabt-72edc598a20d79d5d19caf7b397be4254a7d5fb8.tar.gz
wabt-72edc598a20d79d5d19caf7b397be4254a7d5fb8.tar.bz2
wabt-72edc598a20d79d5d19caf7b397be4254a7d5fb8.zip
Improve display of data segments (#520)
Use the virtual address (init offset) when display the data rather that the file offset. Show the segment size in the header.
Diffstat (limited to 'src/stream.h')
-rw-r--r--src/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h
index a43c5c12..a58cb6ad 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -95,9 +95,9 @@ class Stream {
void WriteMemoryDump(const void* start,
size_t size,
size_t offset = 0,
+ PrintChars print_chars = PrintChars::No,
const char* prefix = nullptr,
- const char* desc = nullptr,
- PrintChars print_chars = PrintChars::No);
+ const char* desc = nullptr);
// Convenience functions for writing enums.
template <typename T>