Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2114)

Unified Diff: net/quic/quic_utils.h

Issue 15951002: QUIC - Added StringToHexASCIIDump to return a hex+ASCII dump in the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing windows build error Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils.h
diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
index e277504352d639925d32418e28cac2fbbd012f65..fca39047578f118f350332f16c331481839ecdfc 100644
--- a/net/quic/quic_utils.h
+++ b/net/quic/quic_utils.h
@@ -63,6 +63,13 @@ class NET_EXPORT_PRIVATE QuicUtils {
// name if possible (i.e. kABCD -> "ABCD"), or will just treat it as a number
// if not.
static std::string TagToString(QuicTag tag);
+
+ // Given a binary buffer, return a hex+ASCII dump in the style of
+ // tcpdump's -X and -XX options:
+ // "0x0000: 0090 69bd 5400 000d 610f 0189 0800 4500 ..i.T...a.....E.\n"
+ // "0x0010: 001c fb98 4000 4001 7e18 d8ef 2301 455d ....@.@.~...#.E]\n"
+ // "0x0020: 7fe2 0800 6bcb 0bc6 806e ....k....n\n"
+ static std::string StringToHexASCIIDump(base::StringPiece in_buffer);
};
} // namespace net
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698