diff options
author | Ian Rogers <irogers@google.com> | 2014-01-30 16:58:39 -0800 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-01-30 16:58:39 -0800 |
commit | 43b2e0f9105848da6470458e7c04bf1fd7fcb25c (patch) | |
tree | 65406c86398c27c934169251c3a4446e99c885f7 /runtime/base/logging.h | |
parent | f7eedc939e9dc07b627b2f94eb132155be992883 (diff) | |
download | art-43b2e0f9105848da6470458e7c04bf1fd7fcb25c.zip art-43b2e0f9105848da6470458e7c04bf1fd7fcb25c.tar.gz art-43b2e0f9105848da6470458e7c04bf1fd7fcb25c.tar.bz2 |
Fix multi-line hex dumping and add unit test.
Change-Id: I7657018fef5d9c17410a9a634db275555f180014
Diffstat (limited to 'runtime/base/logging.h')
-rw-r--r-- | runtime/base/logging.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/runtime/base/logging.h b/runtime/base/logging.h index 8e40da0..075d571 100644 --- a/runtime/base/logging.h +++ b/runtime/base/logging.h @@ -208,24 +208,6 @@ class LogMessage { DISALLOW_COPY_AND_ASSIGN(LogMessage); }; -// Prints a hex dump in this format: -// -// 01234560: 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 0123456789abcdef -// 01234568: 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 0123456789abcdef -class HexDump { - public: - HexDump(const void* address, size_t byte_count, bool show_actual_addresses = false); - void Dump(std::ostream& os) const; - - private: - const void* address_; - size_t byte_count_; - bool show_actual_addresses_; - - DISALLOW_COPY_AND_ASSIGN(HexDump); -}; -std::ostream& operator<<(std::ostream& os, const HexDump& rhs); - // A convenience to allow any class with a "Dump(std::ostream& os)" member function // but without an operator<< to be used as if it had an operator<<. Use like this: // |