Home
last modified time | relevance | path

Searched refs:remaining_bytes (Results 1 – 25 of 44) sorted by relevance

12

/external/pigweed/pw_tokenizer/
Ddecode_test.cc83 EXPECT_EQ(result.remaining_bytes(), 0u); in TEST()
90 EXPECT_EQ(result.remaining_bytes(), 5u); in TEST()
98 EXPECT_EQ(result.remaining_bytes(), 0u); in TEST()
106 EXPECT_EQ(result.remaining_bytes(), 0u); in TEST()
115 EXPECT_EQ(result.remaining_bytes(), 0u); in TEST()
125 EXPECT_EQ(result.remaining_bytes(), in TEST()
135 EXPECT_EQ(result.remaining_bytes(), 0u); in TEST()
200 EXPECT_EQ(0u, no_args_.Format("").remaining_bytes()); in TEST_F()
201 EXPECT_EQ(0u, one_arg_.Format("").remaining_bytes()); in TEST_F()
202 EXPECT_EQ(0u, two_args_.Format("").remaining_bytes()); in TEST_F()
[all …]
Ddetokenize.cc49 if ((lhs.first.remaining_bytes() == 0u) != in IsBetterResult()
50 (rhs.first.remaining_bytes() == 0u)) { in IsBetterResult()
51 return lhs.first.remaining_bytes() == 0u; in IsBetterResult()
Ddetokenize_fuzzer.cc67 while (provider.remaining_bytes() != 0) { in LLVMFuzzerTestOneInput()
86 provider.ConsumeRandomLengthString(provider.remaining_bytes()); in LLVMFuzzerTestOneInput()
/external/curl/tests/libtest/
Dlib1533.c38 size_t remaining_bytes; member
47 data->remaining_bytes = 3; in reset_data()
60 size_t bytes_to_send = data->remaining_bytes; in read_callback()
66 data->remaining_bytes -= bytes_to_send; in read_callback()
151 (curl_off_t)data.remaining_bytes); in test()
/external/pigweed/pw_kvs/
Dalignment.cc39 const size_t remaining_bytes = AlignUp(bytes_in_buffer_, alignment_bytes_); in Flush() local
42 remaining_bytes - bytes_in_buffer_); in Flush()
43 status = output_.Write(buffer_, remaining_bytes).status(); in Flush()
45 bytes_written_ += remaining_bytes; // Include padding in the total. in Flush()
Dentry.cc150 const size_t remaining_bytes = value_size() - offset_bytes; in ReadValue() local
151 const size_t read_size = std::min(buffer.size(), remaining_bytes); in ReadValue()
158 if (read_size != remaining_bytes) { in ReadValue()
/external/bsdiff/
Dsplit_patch_writer.cc49 uint64_t remaining_bytes = in AddControlEntry() local
56 std::min(remaining.diff_size, remaining_bytes); in AddControlEntry()
57 remaining_bytes -= current_patch_entry.diff_size; in AddControlEntry()
62 std::min(remaining.extra_size, remaining_bytes); in AddControlEntry()
63 remaining_bytes -= current_patch_entry.extra_size; in AddControlEntry()
/external/boringssl/src/ssl/test/
Dmock_quic_transport.cc98 uint32_t remaining_bytes; in ReadHeader() local
103 !CBS_get_u32(&cbs, &remaining_bytes) || in ReadHeader()
116 std::vector<uint8_t> discard(remaining_bytes); in ReadHeader()
134 if (remaining_bytes < secret.size()) { in ReadHeader()
138 remaining_bytes -= secret.size(); in ReadHeader()
149 *out_len = remaining_bytes; in ReadHeader()
/external/scudo/standalone/fuzz/
Dget_error_info_fuzzer.cpp26 FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); in LLVMFuzzerTestOneInput()
33 FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); in LLVMFuzzerTestOneInput()
41 FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); in LLVMFuzzerTestOneInput()
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/drivers/se/
Dse.c134 uint32_t number_of_operations, max_bytes, bytes_left, remaining_bytes; in tegra_se_calculate_sha256_hash() local
170 remaining_bytes = src_len_inbyte % max_bytes; in tegra_se_calculate_sha256_hash()
171 if (remaining_bytes > 0U) { in tegra_se_calculate_sha256_hash()
209 len_bits_lsb = (remaining_bytes * 8U); in tegra_se_calculate_sha256_hash()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Ddecode.h190 size_t remaining_bytes) in DecodedFormatString() argument
191 : segments_(std::move(segments)), remaining_bytes_(remaining_bytes) {} in DecodedFormatString()
207 bool ok() const { return remaining_bytes() == 0u && decoding_errors() == 0u; } in ok()
210 size_t remaining_bytes() const { return remaining_bytes_; } in remaining_bytes() function
/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dencode_jpeg_fuzz.cc38 int64 remaining_bytes = size - 5; in FuzzImpl() local
39 int64 pixels = remaining_bytes / channels; in FuzzImpl()
/external/oss-fuzz/projects/mpg123/
Ddecode_fuzzer.cc39 if (provider.remaining_bytes() == 0 in LLVMFuzzerTestOneInput()
46 provider.remaining_bytes()); in LLVMFuzzerTestOneInput()
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/
Dmock_quic_transport.cc85 size_t remaining_bytes = in ReadHeader() local
101 if (remaining_bytes < secret.size()) { in ReadHeader()
104 remaining_bytes -= secret.size(); in ReadHeader()
109 *out_len = remaining_bytes; in ReadHeader()
/external/llvm-project/compiler-rt/lib/scudo/standalone/fuzz/
Dget_error_info_fuzzer.cpp25 std::string MemoryAndTags = FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); in LLVMFuzzerTestOneInput()
31 std::string StackDepotBytes = FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); in LLVMFuzzerTestOneInput()
/external/grpc-grpc/src/core/ext/transport/cronet/transport/
Dcronet_transport.cc118 int remaining_bytes; member
557 s->state.rs.remaining_bytes = GRPC_HEADER_SIZE_IN_BYTES; in on_response_headers_received()
560 s->state.rs.remaining_bytes); in on_response_headers_received()
604 s->state.rs.remaining_bytes -= count; in on_read_completed()
605 if (s->state.rs.remaining_bytes > 0) { in on_read_completed()
610 s->state.rs.remaining_bytes); in on_read_completed()
1175 stream_state->rs.remaining_bytes == 0) { in execute_stream_op()
1187 stream_state->rs.remaining_bytes = stream_state->rs.length_field; in execute_stream_op()
1193 stream_state->rs.remaining_bytes); in execute_stream_op()
1197 stream_state->rs.remaining_bytes = 0; in execute_stream_op()
[all …]
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t194/drivers/se/
Dse.c281 uint32_t number_of_operations, max_bytes, bytes_left, remaining_bytes; in tegra_se_calculate_sha256_hash() local
317 remaining_bytes = (src_len_inbyte % max_bytes); in tegra_se_calculate_sha256_hash()
318 if (remaining_bytes > 0U) { in tegra_se_calculate_sha256_hash()
356 len_bits_lsb = (remaining_bytes * 8U); in tegra_se_calculate_sha256_hash()
/external/rust/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzedDataProviderUnittest.cpp348 TEST(FuzzedDataProvider, remaining_bytes) { in TEST() argument
350 EXPECT_EQ(size_t(1024), DataProv.remaining_bytes()); in TEST()
352 EXPECT_EQ(size_t(1024 - 1), DataProv.remaining_bytes()); in TEST()
355 EXPECT_EQ(size_t(1024 - 1 - 8), DataProv.remaining_bytes()); in TEST()
360 EXPECT_EQ(size_t(0), DataProv.remaining_bytes()); in TEST()
/external/llvm-project/compiler-rt/lib/fuzzer/tests/
DFuzzedDataProviderUnittest.cpp348 TEST(FuzzedDataProvider, remaining_bytes) { in TEST() argument
350 EXPECT_EQ(size_t(1024), DataProv.remaining_bytes()); in TEST()
352 EXPECT_EQ(size_t(1024 - 1), DataProv.remaining_bytes()); in TEST()
355 EXPECT_EQ(size_t(1024 - 1 - 8), DataProv.remaining_bytes()); in TEST()
360 EXPECT_EQ(size_t(0), DataProv.remaining_bytes()); in TEST()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/cronet/transport/
Dcronet_transport.cc129 int remaining_bytes = 0; member
301 s->state.rs.remaining_bytes = GRPC_HEADER_SIZE_IN_BYTES; in read_grpc_header()
306 s->state.rs.remaining_bytes); in read_grpc_header()
612 s->state.rs.remaining_bytes -= count; in on_read_completed()
613 if (s->state.rs.remaining_bytes > 0) { in on_read_completed()
618 s->state.rs.remaining_bytes); in on_read_completed()
1222 stream_state->rs.remaining_bytes == 0) { in execute_stream_op()
1234 stream_state->rs.remaining_bytes = stream_state->rs.length_field; in execute_stream_op()
1240 stream_state->rs.remaining_bytes); in execute_stream_op()
1243 stream_state->rs.remaining_bytes = 0; in execute_stream_op()
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Drtp_packetizer_av1.cc76 int MaxFragmentSize(int remaining_bytes) { in MaxFragmentSize() argument
77 if (remaining_bytes <= 1) { in MaxFragmentSize()
81 if (remaining_bytes < (1 << 7 * i) + i) { in MaxFragmentSize()
82 return remaining_bytes - i; in MaxFragmentSize()
/external/zlib/google/
Dzip_internal.cc178 size_t remaining_bytes = buffer->length - buffer->offset; in ReadZipBuffer() local
179 if (!buffer || !buffer->data || !remaining_bytes) in ReadZipBuffer()
181 size = std::min(size, static_cast<uLong>(remaining_bytes)); in ReadZipBuffer()
/external/angle/third_party/zlib/google/
Dzip_internal.cc178 size_t remaining_bytes = buffer->length - buffer->offset; in ReadZipBuffer() local
179 if (!buffer || !buffer->data || !remaining_bytes) in ReadZipBuffer()
181 size = std::min(size, static_cast<uLong>(remaining_bytes)); in ReadZipBuffer()
/external/tensorflow/tensorflow/security/fuzzing/
Dtstring_fuzz.cc31 while (fuzzed_data.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
Dconsume_leading_digits_fuzz.cc30 while (fuzzed_data.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()

12