Home
last modified time | relevance | path

Searched refs:prefix_length_ (Results 1 – 12 of 12) sorted by relevance

/external/cronet/net/third_party/quiche/src/quiche/spdy/core/
Dspdy_prefixed_buffer_reader.cc19 prefix_length_(prefix_length), in SpdyPrefixedBufferReader()
23 return prefix_length_ + suffix_length_; in Available()
31 if (prefix_length_ >= count) { in ReadN()
35 prefix_length_ -= count; in ReadN()
37 } else if (prefix_length_ != 0) { in ReadN()
39 out = std::copy(prefix_, prefix_ + prefix_length_, out); in ReadN()
40 count -= prefix_length_; in ReadN()
41 prefix_length_ = 0; in ReadN()
61 if (prefix_length_ >= count) { in ReadN()
65 prefix_length_ -= count; in ReadN()
[all …]
Dspdy_prefixed_buffer_reader.h37 size_t prefix_length_; variable
/external/cronet/base/i18n/
Dstreaming_utf8_validator_unittest.cc169 PartialIterator() : index_(0), prefix_length_(0) { Advance(); } in PartialIterator()
182 return base::StringPiece(valid[index_], prefix_length_); in operator *()
186 return index_ == rhs.index_ && prefix_length_ == rhs.prefix_length_; in operator ==()
194 : index_(index), prefix_length_(prefix_length) {} in PartialIterator()
197 if (index_ < std::size(valid) && prefix_length_ < strlen(valid[index_])) in Advance()
198 ++prefix_length_; in Advance()
200 prefix_length_ == strlen(valid[index_])) { in Advance()
202 prefix_length_ = 1; in Advance()
208 size_t prefix_length_; member in base::__anon2d3584110111::PartialIterator
/external/cronet/net/third_party/quiche/src/quiche/quic/qbone/platform/
Dip_range.h17 IpRange() : prefix_length_(0) {} in IpRange()
33 return absl::StrCat(prefix_.ToString(), "/", prefix_length_); in ToString()
52 size_t prefix_length() const { return prefix_length_; } in prefix_length()
56 size_t prefix_length_; variable
Dip_range.cc65 : prefix_(prefix), prefix_length_(prefix_length) { in IpRange()
66 prefix_ = TruncateToLength(prefix_, &prefix_length_); in IpRange()
70 return prefix_ == other.prefix_ && prefix_length_ == other.prefix_length_; in operator ==()
91 prefix_length_ = prefix_length; in FromString()
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc187 PartialIterator() : index_(0), prefix_length_(0) { Advance(); } in PartialIterator()
200 return base::StringPiece(valid[index_], prefix_length_); in operator *()
204 return index_ == rhs.index_ && prefix_length_ == rhs.prefix_length_; in operator ==()
212 : index_(index), prefix_length_(prefix_length) {} in PartialIterator()
215 if (index_ < arraysize(valid) && prefix_length_ < strlen(valid[index_])) in Advance()
216 ++prefix_length_; in Advance()
218 prefix_length_ == strlen(valid[index_])) { in Advance()
220 prefix_length_ = 1; in Advance()
226 size_t prefix_length_; member in base::__anonf5beeafb0111::PartialIterator
/external/cronet/net/third_party/quiche/src/quiche/common/
Dquiche_ip_address.cc227 QuicheIpPrefix::QuicheIpPrefix() : prefix_length_(0) {} in QuicheIpPrefix()
231 prefix_length_ = QuicheIpAddress::kIPv6AddressSize * 8; in QuicheIpPrefix()
233 prefix_length_ = QuicheIpAddress::kIPv4AddressSize * 8; in QuicheIpPrefix()
235 prefix_length_ = 0; in QuicheIpPrefix()
240 : address_(address), prefix_length_(prefix_length) { in QuicheIpPrefix()
246 return absl::StrCat(address_.ToString(), "/", prefix_length_); in ToString()
251 lhs.prefix_length_ == rhs.prefix_length_; in operator ==()
Dquiche_ip_address.h106 uint8_t prefix_length() const { return prefix_length_; } in prefix_length()
120 uint8_t prefix_length_; variable
/external/cronet/net/third_party/quiche/src/quiche/http2/hpack/varint/
Dhpack_varint_decoder_test.cc32 prefix_length_(0) {} in HpackVarintDecoderTest()
67 prefix_length_ = prefix_length; in Decode()
73 uint8_t high_bits_mask = 0b11111111 << prefix_length_; in Decode()
92 return decoder_.Start(prefix, prefix_length_, b); in StartDecoding()
105 uint8_t prefix_length_; member in http2::test::__anon9ca5f90e0111::HpackVarintDecoderTest
Dhpack_varint_round_trip_test.cc42 HpackVarintRoundTripTest() : prefix_length_(0) {} in HpackVarintRoundTripTest()
47 return decoder_.Start(prefix, prefix_length_, b); in StartDecoding()
88 prefix_length_ = prefix_length; in EncodeNoRandom()
91 bb.AppendHighBitsAndVarint(0, prefix_length_, value); in EncodeNoRandom()
95 const uint8_t prefix_mask = (1 << prefix_length_) - 1; in EncodeNoRandom()
105 const uint8_t prefix_mask = (1 << prefix_length_) - 1; in Encode()
117 const uint8_t prefix_mask = (1 << prefix_length_) - 1; in ValidateEncoding()
149 const uint8_t prefix_mask = (1 << prefix_length_) - 1; in ValidateEncoding()
245 uint8_t prefix_length_; member in http2::test::__anon660a4cbe0111::HpackVarintRoundTripTest
/external/webrtc/rtc_base/
Dnetwork.h98 : address_(addr), prefix_length_(prefix_length) {} in NetworkMask()
101 int prefix_length() const { return prefix_length_; } in prefix_length()
104 return address_ == o.address_ && prefix_length_ == o.prefix_length_;
110 int prefix_length_; variable
431 int prefix_length() const { return prefix_length_; } in prefix_length()
586 int prefix_length_; variable
Dnetwork.cc1103 prefix_length_(prefix_length), in Network()
1257 << prefix_.ToSensitiveString() << "/" << prefix_length_ << ":" in ToString()