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

Unified Diff: net/quic/core/quic_utils.h

Issue 2515873002: Delete unused HexDecode method. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | net/quic/core/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_utils.h
diff --git a/net/quic/core/quic_utils.h b/net/quic/core/quic_utils.h
index 9ba914f34f353e48ea1bec6b0a6b93d1ae78393c..c1603dd8127ab6d87b2e84c2e8220a208a4e6590 100644
--- a/net/quic/core/quic_utils.h
+++ b/net/quic/core/quic_utils.h
@@ -96,14 +96,13 @@ class NET_EXPORT_PRIVATE QuicUtils {
const IPEndPoint& old_address,
const IPEndPoint& new_address);
- // This converts 'num' bytes of binary to a 2*'num'-character hexadecimal
- // representation. Return value: 2*'num' characters of ascii std::string.
+ // This converts |length| bytes of binary to a 2*|length|-character
+ // hexadecimal representation.
+ // Return value: 2*|length| characters of ASCII std::string.
static std::string HexEncode(const char* data, size_t length);
static std::string HexEncode(base::StringPiece data);
- // This converts 2*'num' hexadecimal characters to 'num' binary data.
- // Return value: 'num' bytes of binary data (via the 'to' argument).
- static std::string HexDecode(const char* data, size_t length);
+ // Converts |data| from a hexadecimal ASCII std::string to binary.
static std::string HexDecode(base::StringPiece data);
// Returns a std::string containing hex and ASCII representations of |binary|,
« no previous file with comments | « no previous file | net/quic/core/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698