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

Side by Side Diff: net/quic/quic_data_reader.h

Issue 973683003: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_PrrSender_TimeUntilSend_87535917
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_data_reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_DATA_READER_H_ 5 #ifndef NET_QUIC_QUIC_DATA_READER_H_
6 #define NET_QUIC_QUIC_DATA_READER_H_ 6 #define NET_QUIC_QUIC_DATA_READER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "net/base/int128.h" 10 #include "net/base/int128.h"
(...skipping 26 matching lines...) Expand all
37 // Reads a 16-bit unsigned integer into the given output parameter. 37 // Reads a 16-bit unsigned integer into the given output parameter.
38 // Forwards the internal iterator on success. 38 // Forwards the internal iterator on success.
39 // Returns true on success, false otherwise. 39 // Returns true on success, false otherwise.
40 bool ReadUInt16(uint16* result); 40 bool ReadUInt16(uint16* result);
41 41
42 // Reads a 32-bit unsigned integer into the given output parameter. 42 // Reads a 32-bit unsigned integer into the given output parameter.
43 // Forwards the internal iterator on success. 43 // Forwards the internal iterator on success.
44 // Returns true on success, false otherwise. 44 // Returns true on success, false otherwise.
45 bool ReadUInt32(uint32* result); 45 bool ReadUInt32(uint32* result);
46 46
47 // Reads a 48-bit unsigned integer into the given output parameter.
48 // Forwards the internal iterator on success.
49 // Returns true on success, false otherwise.
50 bool ReadUInt48(uint64* result);
51
52 // Reads a 64-bit unsigned integer into the given output parameter. 47 // Reads a 64-bit unsigned integer into the given output parameter.
53 // Forwards the internal iterator on success. 48 // Forwards the internal iterator on success.
54 // Returns true on success, false otherwise. 49 // Returns true on success, false otherwise.
55 bool ReadUInt64(uint64* result); 50 bool ReadUInt64(uint64* result);
56 51
57 // Reads a 128-bit unsigned integer into the given output parameter.
58 // Forwards the internal iterator on success.
59 // Returns true on success, false otherwise.
60 bool ReadUInt128(uint128* result);
61
62 // Reads a 16-bit unsigned float into the given output parameter. 52 // Reads a 16-bit unsigned float into the given output parameter.
63 // Forwards the internal iterator on success. 53 // Forwards the internal iterator on success.
64 // Returns true on success, false otherwise. 54 // Returns true on success, false otherwise.
65 bool ReadUFloat16(uint64* result); 55 bool ReadUFloat16(uint64* result);
66 56
67 // Reads a string prefixed with 16-bit length into the given output parameter. 57 // Reads a string prefixed with 16-bit length into the given output parameter.
68 // 58 //
69 // NOTE: Does not copy but rather references strings in the underlying buffer. 59 // NOTE: Does not copy but rather references strings in the underlying buffer.
70 // This should be kept in mind when handling memory management! 60 // This should be kept in mind when handling memory management!
71 // 61 //
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 114
125 // The location of the next read from our data buffer. 115 // The location of the next read from our data buffer.
126 size_t pos_; 116 size_t pos_;
127 117
128 DISALLOW_COPY_AND_ASSIGN(QuicDataReader); 118 DISALLOW_COPY_AND_ASSIGN(QuicDataReader);
129 }; 119 };
130 120
131 } // namespace net 121 } // namespace net
132 122
133 #endif // NET_QUIC_QUIC_DATA_READER_H_ 123 #endif // NET_QUIC_QUIC_DATA_READER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_data_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698