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

Unified Diff: net/quic/quic_data_reader.cc

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 5 years, 10 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_data_reader.h ('k') | net/quic/quic_data_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_data_reader.cc
diff --git a/net/quic/quic_data_reader.cc b/net/quic/quic_data_reader.cc
index b9a6acf32f5b28c442caf18ba17d93ebc912be8f..7542c8311398143b9c49679f3d695b211df61c07 100644
--- a/net/quic/quic_data_reader.cc
+++ b/net/quic/quic_data_reader.cc
@@ -25,43 +25,10 @@ bool QuicDataReader::ReadUInt32(uint32* result) {
return ReadBytes(result, sizeof(*result));
}
-bool QuicDataReader::ReadUInt48(uint64* result) {
- uint32 lo;
- if (!ReadUInt32(&lo)) {
- return false;
- }
-
- uint16 hi;
- if (!ReadUInt16(&hi)) {
- return false;
- }
-
- *result = hi;
- *result <<= 32;
- *result += lo;
-
- return true;
-}
-
bool QuicDataReader::ReadUInt64(uint64* result) {
return ReadBytes(result, sizeof(*result));
}
-bool QuicDataReader::ReadUInt128(uint128* result) {
- uint64 high_hash;
- uint64 low_hash;
-
- if (!ReadUInt64(&low_hash)) {
- return false;
- }
- if (!ReadUInt64(&high_hash)) {
- return false;
- }
-
- *result = uint128(high_hash, low_hash);
- return true;
-}
-
bool QuicDataReader::ReadUFloat16(uint64* result) {
uint16 value;
if (!ReadUInt16(&value)) {
« no previous file with comments | « net/quic/quic_data_reader.h ('k') | net/quic/quic_data_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698