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

Unified Diff: net/quic/platform/api/quic_endian.h

Issue 2847753002: Some changes to prepare for endian change for QUIC: 1) Make data reader/write be able to read/write… (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
Index: net/quic/platform/api/quic_endian.h
diff --git a/net/quic/platform/api/quic_endian.h b/net/quic/platform/api/quic_endian.h
index adf5c520a3042a111761968cb3702fccf3f7a257..474143fc43c2a5184bd5b22f242032a9e6d006f1 100644
--- a/net/quic/platform/api/quic_endian.h
+++ b/net/quic/platform/api/quic_endian.h
@@ -9,6 +9,11 @@
namespace net {
+enum Endianness {
+ NETWORK_BYTE_ORDER, // big endian
+ HOST_BYTE_ORDER // little endian
+};
+
// Provide utility functions that convert from/to network order (big endian)
// to/from host order (can be either little or big endian depending on the
// platform).
« net/quic/core/quic_data_writer_test.cc ('K') | « net/quic/core/quic_packet_creator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698