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

Unified Diff: net/quic/core/quic_packet_creator.cc

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 | « net/quic/core/quic_framer_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_creator.cc
diff --git a/net/quic/core/quic_packet_creator.cc b/net/quic/core/quic_packet_creator.cc
index e249fd858b77423c91994d520066fe1490eb3835..0d2e293f6125af787845b2528f8eb64b9c1806e6 100644
--- a/net/quic/core/quic_packet_creator.cc
+++ b/net/quic/core/quic_packet_creator.cc
@@ -367,7 +367,7 @@ void QuicPacketCreator::CreateAndSerializeStreamFrame(
FillPacketHeader(&header);
QUIC_CACHELINE_ALIGNED char encrypted_buffer[kMaxPacketSize];
QuicDataWriter writer(arraysize(encrypted_buffer), encrypted_buffer,
- framer_->perspective(), HOST_BYTE_ORDER);
+ framer_->perspective(), framer_->endianness());
if (!framer_->AppendPacketHeader(header, &writer)) {
QUIC_BUG << "AppendPacketHeader failed";
return;
« no previous file with comments | « net/quic/core/quic_framer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698