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

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

Issue 2842373003: In QUIC v39, read and write integers and floating numbers in big endian. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | net/quic/core/quic_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_data_reader.h
diff --git a/net/quic/core/quic_data_reader.h b/net/quic/core/quic_data_reader.h
index a4dc1a928808839d3c5c54fbc9167dd77d2b0fc3..755f2fcc66fa5c4b25cfc3bf2510b6572589a823 100644
--- a/net/quic/core/quic_data_reader.h
+++ b/net/quic/core/quic_data_reader.h
@@ -125,6 +125,8 @@ class QUIC_EXPORT_PRIVATE QuicDataReader {
// DOES NOT forward the internal iterator.
uint8_t PeekByte() const;
+ void set_endianness(Endianness endianness) { endianness_ = endianness; }
+
private:
// Returns true if the underlying buffer has enough room to read the given
// amount of bytes.
« no previous file with comments | « no previous file | net/quic/core/quic_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698