/external/cronet/net/third_party/quiche/src/quiche/http2/decoder/ |
D | http2_structure_decoder.h | 46 static_assert(S::EncodedSize() <= sizeof buffer_, "buffer_ is too small"); in Start() 49 << "; EncodedSize=" << S::EncodedSize(); in Start() 50 if (db->Remaining() >= S::EncodedSize()) { in Start() 54 IncompleteStart(db, S::EncodedSize()); in Start() 62 if (ResumeFillingBuffer(db, S::EncodedSize())) { in Resume() 66 DecodeBuffer buffer_db(buffer_, S::EncodedSize()); in Resume() 70 QUICHE_DCHECK_LT(offset_, S::EncodedSize()); in Resume() 80 static_assert(S::EncodedSize() <= sizeof buffer_, "buffer_ is too small"); in Start() 84 << "; EncodedSize=" << S::EncodedSize(); in Start() 85 if (db->MinLengthRemaining(*remaining_payload) >= S::EncodedSize()) { in Start() [all …]
|
D | decode_http2_structures.cc | 21 QUICHE_DCHECK_LE(Http2FrameHeader::EncodedSize(), b->Remaining()); in DoDecode() 33 QUICHE_DCHECK_LE(Http2PriorityFields::EncodedSize(), b->Remaining()); in DoDecode() 51 QUICHE_DCHECK_LE(Http2RstStreamFields::EncodedSize(), b->Remaining()); in DoDecode() 60 QUICHE_DCHECK_LE(Http2SettingFields::EncodedSize(), b->Remaining()); in DoDecode() 70 QUICHE_DCHECK_LE(Http2PushPromiseFields::EncodedSize(), b->Remaining()); in DoDecode() 79 QUICHE_DCHECK_LE(Http2PingFields::EncodedSize(), b->Remaining()); in DoDecode() 80 memcpy(out->opaque_bytes, b->cursor(), Http2PingFields::EncodedSize()); in DoDecode() 81 b->AdvanceCursor(Http2PingFields::EncodedSize()); in DoDecode() 89 QUICHE_DCHECK_LE(Http2GoAwayFields::EncodedSize(), b->Remaining()); in DoDecode() 99 QUICHE_DCHECK_LE(Http2WindowUpdateFields::EncodedSize(), b->Remaining()); in DoDecode() [all …]
|
D | http2_structure_decoder_test.cc | 61 EXPECT_EQ(old_remaining - S::EncodedSize(), b->Remaining()); in StartDecoding() 65 EXPECT_LT(structure_decoder_.offset(), S::EncodedSize()); in StartDecoding() 75 EXPECT_LT(old_offset, S::EncodedSize()); in ResumeDecoding() 78 EXPECT_LE(S::EncodedSize(), old_offset + avail); in ResumeDecoding() 79 EXPECT_EQ(b->Remaining(), avail - (S::EncodedSize() - old_offset)); in ResumeDecoding() 83 EXPECT_LT(structure_decoder_.offset(), S::EncodedSize()); in ResumeDecoding() 85 EXPECT_GT(S::EncodedSize(), old_offset + avail); in ResumeDecoding() 95 HTTP2_VERIFY_LE(S::EncodedSize(), data.size()); in DecodeLeadingStructure() 112 validator = ValidateDoneAndOffset(S::EncodedSize(), validator); in DecodeLeadingStructure() 122 HTTP2_VERIFY_EQ(S::EncodedSize(), structure_decoder_.offset()); in DecodeLeadingStructure() [all …]
|
D | decode_http2_structures_test.cc | 37 EXPECT_EQ(S::EncodedSize(), fb.size()); in SerializeStructure() 54 ASSERT_LE(S::EncodedSize(), data.size()); in DecodeLeadingStructure() 58 EXPECT_EQ(db.Offset(), S::EncodedSize()); in DecodeLeadingStructure() 73 EXPECT_EQ(S::EncodedSize(), bytes.size()); in EncodeThenDecode()
|
/external/pigweed/pw_hdlc/ |
D | encoded_size_test.cc | 66 TEST(EncodedSize, Constants_WidestAddress) { in TEST() argument 75 EXPECT_EQ(varint::EncodedSize(kWidestAddress), 10u); in TEST() 78 TEST(EncodedSize, EscapedSize_AllEscapeBytes) { in TEST() argument 82 TEST(EncodedSize, EscapedSize_NoEscapeBytes) { in TEST() argument 87 TEST(EncodedSize, EscapedSize_SomeEscapeBytes) { in TEST() argument 92 TEST(EncodedSize, EscapedSize_Address) { in TEST() argument 94 varint::EncodedSize(kWidestAddress) * 2 - 1); in TEST() 97 TEST(EncodedSize, MaxEncodedSize_Overload) { in TEST() argument 102 TEST(EncodedSize, MaxEncodedSize_EmptyPayload) { in TEST() argument 107 TEST(EncodedSize, MaxEncodedSize_PayloadWithoutEscapes) { in TEST() argument [all …]
|
/external/pigweed/pw_transfer/ |
D | chunk_test.cc | 29 EXPECT_LT(chunk.EncodedSize(), buffer.size()); in TEST() 33 EXPECT_EQ(chunk.EncodedSize(), result->size_bytes()); in TEST() 41 EXPECT_GT(chunk.EncodedSize(), buffer.size()); in TEST() 51 EXPECT_EQ(chunk.EncodedSize(), 16u); in TEST() 58 EXPECT_EQ(chunk.EncodedSize(), buffer.size()); in TEST() 62 EXPECT_EQ(chunk.EncodedSize(), result->size_bytes()); in TEST()
|
D | context.cc | 556 chunk.EncodedSize() + 1 /* data key */ + 5 /* data size */; in TransmitNextChunk() 1082 max_size -= varint::EncodedSize(channel_id); in MaxWriteChunkSize() 1083 max_size -= varint::EncodedSize(max_size); in MaxWriteChunkSize() 1100 max_size -= varint::EncodedSize(session_id_); in MaxWriteChunkSize() 1101 max_size -= varint::EncodedSize(window_end_offset_); in MaxWriteChunkSize() 1102 max_size -= varint::EncodedSize(max_size); in MaxWriteChunkSize()
|
/external/cronet/net/third_party/quiche/src/quiche/http2/ |
D | http2_structures.h | 53 static constexpr size_t EncodedSize() { return 9; } in EncodedSize() function 156 static constexpr size_t EncodedSize() { return 5; } in EncodedSize() function 185 static constexpr size_t EncodedSize() { return 4; } in EncodedSize() function 208 static constexpr size_t EncodedSize() { return 6; } in EncodedSize() function 229 static constexpr size_t EncodedSize() { return 4; } in EncodedSize() function 246 static constexpr size_t EncodedSize() { return 8; } in EncodedSize() function 266 static constexpr size_t EncodedSize() { return 8; } in EncodedSize() function 287 static constexpr size_t EncodedSize() { return 4; } in EncodedSize() function 306 static constexpr size_t EncodedSize() { return 2; } in EncodedSize() function 327 static constexpr size_t EncodedSize() { return 4; } in EncodedSize() function
|
/external/cronet/net/third_party/quiche/src/quiche/http2/test_tools/ |
D | http2_frame_builder_test.cc | 109 size_t payload_size = 6 * Http2SettingFields::EncodedSize(); in TEST() 110 EXPECT_EQ(Http2FrameHeader::EncodedSize() + payload_size, fb.size()); in TEST() 172 EXPECT_EQ(kData.size(), Http2PingFields::EncodedSize()); in TEST() 180 EXPECT_EQ(kData.size(), Http2GoAwayFields::EncodedSize()); in TEST() 211 EXPECT_EQ(kData.size(), 3 * Http2WindowUpdateFields::EncodedSize()); in TEST() 222 EXPECT_EQ(kData.size(), 2 * Http2AltSvcFields::EncodedSize()); in TEST()
|
D | frame_parts.cc | 166 opt_payload_length_.value() - Http2PriorityFields::EncodedSize(); in OnHeadersPriority() 265 ASSERT_GE(header.payload_length, Http2PushPromiseFields::EncodedSize()); in OnPushPromiseStart() 267 header.payload_length - Http2PushPromiseFields::EncodedSize(); in OnPushPromiseStart() 310 header.payload_length - Http2GoAwayFields::EncodedSize(); in OnGoAwayStart() 377 header.payload_length - Http2PriorityUpdateFields::EncodedSize(); in OnPriorityUpdateStart()
|
/external/pigweed/pw_base64/ |
D | base64_test.cc | 182 ASSERT_EQ(EncodedSize(data.binary_size), actual_encoded_size); in ExpectEncodeDecodeSizesMatch() 206 const size_t size = EncodedSize(data.binary_size); in TEST() 217 const size_t size = EncodedSize(data.binary_size); in TEST() 313 EXPECT_EQ(0u, EncodedSize(0)); in TEST() 325 char output[EncodedSize(sizeof(input)) + 1] = {}; in TEST() 343 char output[EncodedSize(sizeof("foobar")) + 1] = {}; in TEST() 432 char output[EncodedSize(sizeof("foobar")) + 1] = {}; in TEST() 442 char output[EncodedSize(sizeof("foobar")) + 1] = {}; in TEST()
|
D | base64.cc | 162 const size_t required_size = EncodedSize(binary.size_bytes()); in Encode() 180 const size_t final_size = initial_size + EncodedSize(binary.size()); in Encode()
|
/external/pigweed/pw_varint/ |
D | varint_test.cc | 1012 TEST(Varint, EncodedSize) { in TEST() argument 1013 EXPECT_EQ(EncodedSize(uint64_t(0u)), 1u); in TEST() 1014 EXPECT_EQ(EncodedSize(uint64_t(1u)), 1u); in TEST() 1015 EXPECT_EQ(EncodedSize(uint64_t(127u)), 1u); in TEST() 1016 EXPECT_EQ(EncodedSize(uint64_t(128u)), 2u); in TEST() 1017 EXPECT_EQ(EncodedSize(uint64_t(16383u)), 2u); in TEST() 1018 EXPECT_EQ(EncodedSize(uint64_t(16384u)), 3u); in TEST() 1019 EXPECT_EQ(EncodedSize(uint64_t(2097151u)), 3u); in TEST() 1020 EXPECT_EQ(EncodedSize(uint64_t(2097152u)), 4u); in TEST() 1021 EXPECT_EQ(EncodedSize(uint64_t(268435455u)), 4u); in TEST() [all …]
|
/external/cronet/net/third_party/quiche/src/quiche/binary_http/ |
D | binary_http_message.cc | 194 size_t BinaryHttpMessage::Fields::EncodedSize() const { in EncodedSize() function in quiche::BinaryHttpMessage::Fields 233 return header_fields_.EncodedSize() + StringPieceVarInt62Len(body_); in EncodedKnownLengthFieldsAndBodySize() 259 data.resize(EncodedSize()); in EncodeAsKnownLength() 283 size_t BinaryHttpResponse::EncodedSize() const { in EncodedSize() function in quiche::BinaryHttpResponse 286 size += informational.EncodedSize(); in EncodedSize() 304 size_t BinaryHttpResponse::InformationalResponse::EncodedSize() const { in EncodedSize() function in quiche::BinaryHttpResponse::InformationalResponse 306 fields_.EncodedSize(); in EncodedSize() 353 size_t BinaryHttpRequest::EncodedSize() const { in EncodedSize() function in quiche::BinaryHttpRequest 361 data.resize(EncodedSize()); in EncodeAsKnownLength()
|
D | binary_http_message.h | 63 virtual size_t EncodedSize() const = 0; 92 size_t EncodedSize() const; 153 size_t EncodedSize() const override; 231 size_t EncodedSize() const; 246 size_t EncodedSize() const override;
|
/external/pigweed/pw_base64/public/pw_base64/ |
D | base64.h | 77 constexpr size_t EncodedSize(size_t binary_size_bytes) { in EncodedSize() function 105 inline InlineString<EncodedSize(kMaxBinaryDataSizeBytes)> Encode( in Encode() 107 InlineString<EncodedSize(kMaxBinaryDataSizeBytes)> output; in Encode()
|
/external/vixl/src/aarch64/ |
D | registers-aarch64.h | 398 enum EncodedSize : uint8_t { enum 435 static EncodedSize EncodeSizeInBits(int size_in_bits) { in EncodeSizeInBits() 454 static int DecodeSizeInBytesLog2(EncodedSize encoded_size) { in DecodeSizeInBytesLog2() 475 static int DecodeSizeInBytes(EncodedSize encoded_size) { in DecodeSizeInBytes() 482 static int DecodeSizeInBits(EncodedSize encoded_size) { in DecodeSizeInBits() 498 EncodedSize size, 500 EncodedSize lane_size, 511 EncodedSize size_; 513 EncodedSize lane_size_; 582 static EncodedSize EncodeLaneSizeInBits(int size_in_bits, int lanes) { in EncodeLaneSizeInBits() [all …]
|
/external/pigweed/pw_rpc/ |
D | channel_test.cc | 57 varint::EncodedSize(kUint32Max) - varint::EncodedSize(kTestPayloadSize); in TEST() 88 varint::EncodedSize(kUint32Max) - varint::EncodedSize(kTestPayloadSize); in TEST()
|
/external/cronet/net/third_party/quiche/src/quiche/http2/decoder/payload_decoders/ |
D | window_update_payload_decoder.cc | 32 if (db->Remaining() == Http2WindowUpdateFields::EncodedSize() && in StartDecodingPayload() 33 total_length == Http2WindowUpdateFields::EncodedSize()) { in StartDecodingPayload()
|
D | push_promise_payload_decoder.cc | 115 Http2PushPromiseFields::EncodedSize()); in ResumeDecodingPayload() 119 Http2PushPromiseFields::EncodedSize() - in ResumeDecodingPayload()
|
D | settings_payload_decoder_test.cc | 88 return 0 != (size % Http2SettingFields::EncodedSize()); in TEST_F() 140 const size_t size = Http2SettingFields::EncodedSize() * num_settings; in TEST_F()
|
/external/pigweed/pw_protobuf/public/pw_protobuf/ |
D | serialized_size.h | 65 return varint::EncodedSize( in TagSizeBytes() 72 return TagSizeBytes(field_number) + varint::EncodedSize(value); in SizeOfVarintField() 83 return TagSizeBytes(field_number) + varint::EncodedSize(length_bytes);
|
/external/grpc-grpc/third_party/nanopb/generator/ |
D | nanopb_generator.py | 124 class EncodedSize: class 128 if isinstance(value, EncodedSize): 140 return EncodedSize(self.value + other, self.symbols) 142 return EncodedSize(self.value, self.symbols + [str(other)]) 143 elif isinstance(other, EncodedSize): 144 return EncodedSize(self.value + other.value, self.symbols + other.symbols) 150 return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols]) 569 encsize = EncodedSize(self.submsgname + 'size') 587 encsize = EncodedSize(self.enc_size) 633 return EncodedSize(0) [all …]
|
/external/nanopb-c/generator/ |
D | nanopb_generator.py | 153 class EncodedSize: class 157 if isinstance(value, EncodedSize): 169 return EncodedSize(self.value + other, self.symbols) 171 return EncodedSize(self.value, self.symbols + [str(other)]) 172 elif isinstance(other, EncodedSize): 173 return EncodedSize(self.value + other.value, self.symbols + other.symbols) 179 return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols]) 682 encsize = EncodedSize(self.submsgname + 'size') 700 encsize = EncodedSize(self.enc_size) 751 return EncodedSize(0) [all …]
|
/external/pigweed/pw_varint/public/pw_varint/ |
D | varint.h | 191 constexpr size_t EncodedSize(uint64_t integer) { in EncodedSize() function 197 return EncodedSize(ZigZagEncode(integer)); in ZigZagEncodedSize()
|