Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/external/llvm-project/lldb/unittests/Process/Linux/
DProcessorTraceTest.cpp30 size_t bytes_read; in TEST() local
38 bytes_read = ReadCylicBufferWrapper(smaller_buffer, 0, cyclic_buffer, in TEST()
40 ASSERT_EQ(0u, bytes_read); in TEST()
43 bytes_read = ReadCylicBufferWrapper(smaller_buffer, sizeof(smaller_buffer), in TEST()
45 ASSERT_EQ(0u, bytes_read); in TEST()
48 bytes_read = in TEST()
51 ASSERT_EQ(0u, bytes_read); in TEST()
54 bytes_read = in TEST()
57 ASSERT_EQ(0u, bytes_read); in TEST()
60 bytes_read = in TEST()
[all …]
/external/libaom/libaom/common/
Dobudec.c71 ObuHeader *obu_header, size_t *bytes_read) { in obudec_read_obu_header() argument
73 !obu_data || !obu_header || !bytes_read) { in obudec_read_obu_header()
76 *bytes_read = fread(obu_data, 1, 1, f); in obudec_read_obu_header()
78 if (feof(f) && *bytes_read == 0) { in obudec_read_obu_header()
80 } else if (*bytes_read != 1) { in obudec_read_obu_header()
91 ++*bytes_read; in obudec_read_obu_header()
96 obu_data, *bytes_read, &obu_bytes_parsed, obu_header, is_annexb); in obudec_read_obu_header()
97 if (parse_result != AOM_CODEC_OK || *bytes_read != obu_bytes_parsed) { in obudec_read_obu_header()
109 uint8_t *obu_data, size_t *bytes_read) { in obudec_read_obu_payload() argument
110 if (!f || payload_length == 0 || !obu_data || !bytes_read) return -1; in obudec_read_obu_payload()
[all …]
/external/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc113 int32_t bytes_read = 0; in CopyTo() local
117 while ((bytes_read = in CopyTo()
119 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); in CopyTo()
121 index += bytes_read; in CopyTo()
122 remaining_length -= bytes_read; in CopyTo()
134 int32_t bytes_read = 0; in CopyTo() local
137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo()
138 os->Write(&b, 0, bytes_read); in CopyTo()
139 index += bytes_read; in CopyTo()
147 int32_t bytes_read = 0; in CopyFrom() local
[all …]
/external/bsdiff/
Dextents_file_unittest.cc98 size_t bytes_read; in TEST_F() local
99 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read)); in TEST_F()
125 size_t bytes_read = 0; in TEST_F() local
126 EXPECT_TRUE(file.Read(buf, 100, &bytes_read)); in TEST_F()
127 EXPECT_EQ(15U, bytes_read); in TEST_F()
147 size_t bytes_read = 0; in TEST_F() local
148 EXPECT_TRUE(file.Read(buf, 2, &bytes_read)); in TEST_F()
149 EXPECT_EQ(2U, bytes_read); in TEST_F()
150 EXPECT_TRUE(file.Read(buf, 8, &bytes_read)); in TEST_F()
151 EXPECT_EQ(8U, bytes_read); in TEST_F()
[all …]
/external/openscreen/osp/msgs/
Dmessages_unittest.cc28 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local
30 ASSERT_EQ(bytes_read, bytes_out); in TEST()
44 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local
46 ASSERT_EQ(bytes_read, bytes_out); in TEST()
62 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local
64 ASSERT_EQ(bytes_read, bytes_out); in TEST()
97 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local
99 ASSERT_GT(0, bytes_read); in TEST()
114 ssize_t bytes_read = in TEST() local
116 ASSERT_EQ(bytes_read, bytes_out); in TEST()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/esp/
Daudio_provider.cc100 size_t bytes_read; in CaptureSamples() local
106 &bytes_read, 10); in CaptureSamples()
107 if (bytes_read <= 0) { in CaptureSamples()
108 ESP_LOGE(TAG, "Error in I2S read : %d", bytes_read); in CaptureSamples()
110 if (bytes_read < i2s_bytes_to_read) { in CaptureSamples()
115 (uint8_t*)i2s_read_buffer, bytes_read, 10); in CaptureSamples()
122 } else if (bytes_written < bytes_read) { in CaptureSamples()
161 int32_t bytes_read = in GetAudioSamples() local
165 if (bytes_read < 0) { in GetAudioSamples()
167 } else if (bytes_read < new_samples_to_get * sizeof(int16_t)) { in GetAudioSamples()
[all …]
/external/ltp/testcases/kernel/fs/fs_di/
Dfrag.c48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; in main() local
78 bytes_read = fread(buff, 1, 1024, fp_data); in main()
79 if (bytes_read < 0) { in main()
84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); in main()
85 if (bytes_read != bytes_written) { in main()
90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); in main()
91 if (bytes_read != bytes_written) { in main()
104 if (bytes_read < 1024) in main()
/external/cpuinfo/tools/
Dcpuinfo-dump.c25 ssize_t bytes_read; in main() local
27 bytes_read = read(file, buffer, BUFFER_SIZE); in main()
28 if (bytes_read < 0) { in main()
34 position += (size_t) bytes_read; in main()
35 if (bytes_read > 0) { in main()
36 fwrite(buffer, 1, (size_t) bytes_read, stdout); in main()
38 } while (bytes_read != 0); in main()
/external/e2fsprogs/resize/
Dresource_track.c43 track->bytes_read = 0; in init_resource_track()
48 track->bytes_read = io_start->bytes_read; in init_resource_track()
105 unsigned long long bytes_read = 0; in print_resource_track() local
110 bytes_read = delta->bytes_read - track->bytes_read; in print_resource_track()
113 if (bytes_read == 0 && bytes_written == 0) in print_resource_track()
119 mbytes(bytes_read), in print_resource_track()
121 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
/external/cpuinfo/src/linux/
Dmultiline.c41 ssize_t bytes_read; in cpuinfo_linux_parse_multiline_file() local
44 bytes_read = cpuinfo_mock_read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_multiline_file()
46 bytes_read = read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_multiline_file()
48 if (bytes_read < 0) { in cpuinfo_linux_parse_multiline_file()
54 position += (size_t) bytes_read; in cpuinfo_linux_parse_multiline_file()
55 const char* data_end = data_start + (size_t) bytes_read; in cpuinfo_linux_parse_multiline_file()
58 if (bytes_read == 0) { in cpuinfo_linux_parse_multiline_file()
91 } while (bytes_read != 0); in cpuinfo_linux_parse_multiline_file()
Dsmallfile.c40 ssize_t bytes_read; in cpuinfo_linux_parse_small_file() local
43 bytes_read = cpuinfo_mock_read(file, &buffer[buffer_position], buffer_size - buffer_position); in cpuinfo_linux_parse_small_file()
45 bytes_read = read(file, &buffer[buffer_position], buffer_size - buffer_position); in cpuinfo_linux_parse_small_file()
47 if (bytes_read < 0) { in cpuinfo_linux_parse_small_file()
51 buffer_position += (size_t) bytes_read; in cpuinfo_linux_parse_small_file()
56 } while (bytes_read != 0); in cpuinfo_linux_parse_small_file()
Dcpulist.c154 ssize_t bytes_read; in cpuinfo_linux_parse_cpulist() local
157 bytes_read = cpuinfo_mock_read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_cpulist()
159 bytes_read = read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_cpulist()
161 if (bytes_read < 0) { in cpuinfo_linux_parse_cpulist()
167 position += (size_t) bytes_read; in cpuinfo_linux_parse_cpulist()
168 const char* data_end = data_start + (size_t) bytes_read; in cpuinfo_linux_parse_cpulist()
171 if (bytes_read == 0) { in cpuinfo_linux_parse_cpulist()
202 } while (bytes_read != 0); in cpuinfo_linux_parse_cpulist()
/external/boringssl/src/tool/
Dpkcs12.cc78 size_t bytes_read; in DoPKCS12() local
79 if (!ReadFromFD(fd.get(), &bytes_read, contents.get() + off, size - off)) { in DoPKCS12()
83 if (bytes_read == 0) { in DoPKCS12()
87 off += bytes_read; in DoPKCS12()
96 size_t bytes_read; in DoPKCS12() local
97 if (!ReadFromFD(0, &bytes_read, password + off, in DoPKCS12()
103 off += bytes_read; in DoPKCS12()
104 if (bytes_read == 0 || OPENSSL_memchr(password, '\n', off) != nullptr) { in DoPKCS12()
/external/rust/crates/quiche/deps/boringssl/src/tool/
Dpkcs12.cc78 size_t bytes_read; in DoPKCS12() local
79 if (!ReadFromFD(fd.get(), &bytes_read, contents.get() + off, size - off)) { in DoPKCS12()
83 if (bytes_read == 0) { in DoPKCS12()
87 off += bytes_read; in DoPKCS12()
96 size_t bytes_read; in DoPKCS12() local
97 if (!ReadFromFD(0, &bytes_read, password + off, in DoPKCS12()
103 off += bytes_read; in DoPKCS12()
104 if (bytes_read == 0 || OPENSSL_memchr(password, '\n', off) != nullptr) { in DoPKCS12()
/external/llvm-project/lldb/tools/lldb-vscode/
DIOStream.cpp98 int bytes_read = 0; in read_full() local
100 bytes_read = ::recv(descriptor.m_socket, ptr, length, 0); in read_full()
102 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full()
104 if (bytes_read == 0) { in read_full()
109 if (bytes_read < 0) { in read_full()
127 assert(bytes_read >= 0 && (size_t)bytes_read <= length); in read_full()
128 ptr += bytes_read; in read_full()
129 length -= bytes_read; in read_full()
/external/perfetto/src/base/
Dfile_utils.cc63 ssize_t bytes_read; in ReadFileDescriptor() local
68 bytes_read = Read(fd, &((*out)[i]), kBufSize); in ReadFileDescriptor()
69 if (bytes_read > 0) { in ReadFileDescriptor()
70 i += static_cast<size_t>(bytes_read); in ReadFileDescriptor()
73 return bytes_read == 0; in ReadFileDescriptor()
86 DWORD bytes_read = 0; in ReadPlatformHandle() local
87 auto res = ::ReadFile(h, &((*out)[i]), kBufSize, &bytes_read, nullptr); in ReadPlatformHandle()
88 if (res && bytes_read > 0) { in ReadPlatformHandle()
89 i += static_cast<size_t>(bytes_read); in ReadPlatformHandle()
92 const bool is_eof = res && bytes_read == 0; in ReadPlatformHandle()
/external/grpc-grpc/src/cpp/ext/filters/census/
Drpc_encoding.h89 size_t bytes_read = in Decode() local
91 if (bytes_read == 0) { in Decode()
94 pos += bytes_read; in Decode()
132 size_t bytes_read = kFieldIdSize; in ParseField() local
135 bytes_read += kTraceIdSize; in ParseField()
136 if (bytes_read > buf.size()) { in ParseField()
143 bytes_read += kSpanIdSize; in ParseField()
144 if (bytes_read > buf.size()) { in ParseField()
151 bytes_read += kTraceOptionsSize; in ParseField()
152 if (bytes_read > buf.size()) { in ParseField()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/cpp/ext/filters/census/
Drpc_encoding.h89 size_t bytes_read = in Decode() local
91 if (bytes_read == 0) { in Decode()
94 pos += bytes_read; in Decode()
132 size_t bytes_read = kFieldIdSize; in ParseField() local
135 bytes_read += kTraceIdSize; in ParseField()
136 if (bytes_read > buf.size()) { in ParseField()
143 bytes_read += kSpanIdSize; in ParseField()
144 if (bytes_read > buf.size()) { in ParseField()
151 bytes_read += kTraceOptionsSize; in ParseField()
152 if (bytes_read > buf.size()) { in ParseField()
[all …]
/external/arm-trusted-firmware/drivers/mtd/nand/
Dcore.c34 unsigned int bytes_read; in nand_read() local
79 bytes_read = MIN((size_t)(nand_dev.page_size - in nand_read()
85 bytes_read); in nand_read()
96 bytes_read = nand_dev.page_size; in nand_read()
99 length -= bytes_read; in nand_read()
100 buffer += bytes_read; in nand_read()
101 *length_read += bytes_read; in nand_read()
/external/openscreen/testing/util/
Dread_file.cc20 int bytes_read = 0; in ReadEntireFileToString() local
21 while (bytes_read < file_size) { in ReadEntireFileToString()
22 size_t ret = fread(&contents[bytes_read], 1, file_size - bytes_read, file); in ReadEntireFileToString()
26 bytes_read += ret; in ReadEntireFileToString()
/external/cpuinfo/src/arm/linux/
Dhwcap.c105 ssize_t bytes_read; in cpuinfo_arm_linux_hwcap_from_procfs()
108 bytes_read = read(file, &elf_auxv, sizeof(Elf32_auxv_t)); in cpuinfo_arm_linux_hwcap_from_procfs()
109 if (bytes_read < 0) { in cpuinfo_arm_linux_hwcap_from_procfs()
112 } else if (bytes_read > 0) { in cpuinfo_arm_linux_hwcap_from_procfs()
113 if (bytes_read == sizeof(elf_auxv)) { in cpuinfo_arm_linux_hwcap_from_procfs()
125 sizeof(elf_auxv), (size_t) bytes_read); in cpuinfo_arm_linux_hwcap_from_procfs()
129 } while (bytes_read == sizeof(Elf32_auxv_t)); in cpuinfo_arm_linux_hwcap_from_procfs()
/external/llvm-project/lldb/source/Plugins/Process/POSIX/
DNativeProcessELF.cpp69 size_t bytes_read; in GetELFImageInfoAddress() local
71 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress()
94 size_t bytes_read; in GetELFImageInfoAddress() local
96 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress()
119 size_t bytes_read; in ReadSVR4LibraryInfo() local
121 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo()
127 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo()
150 size_t bytes_read; in GetLoadedSVR4Libraries() local
152 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
161 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
/external/pigweed/pw_trace_tokenized/
Dtrace_buffer_test.cc85 size_t bytes_read = 0; in TEST() local
86 EXPECT_EQ(buf->PeekFront(std::span<std::byte>(value), &bytes_read), in TEST()
90 EXPECT_GE(bytes_read, expected_min_bytes_used - 1); in TEST()
91 EXPECT_LE(bytes_read, expected_max_bytes_used - 1); in TEST()
93 reinterpret_cast<char*>(&value[bytes_read - sizeof(data)])); in TEST()
124 size_t bytes_read = 0; in TEST() local
125 EXPECT_EQ(buf->PeekFront(std::span<std::byte>(value), &bytes_read), in TEST()
128 EXPECT_EQ(*reinterpret_cast<size_t*>(&value[bytes_read - sizeof(size_t)]), in TEST()
/external/tensorflow/tensorflow/core/lib/io/
Dinputbuffer.cc86 size_t bytes_read = 0; in ReadNBytes() local
87 Status status = ReadNBytes(bytes_to_read, &(*result)[0], &bytes_read); in ReadNBytes()
88 if (bytes_read < bytes_to_read) result->resize(bytes_read); in ReadNBytes()
93 size_t* bytes_read) { in ReadNBytes() argument
99 *bytes_read = 0; in ReadNBytes()
100 while (*bytes_read < static_cast<size_t>(bytes_to_read)) { in ReadNBytes()
110 std::min<int64>(limit_ - pos_, bytes_to_read - *bytes_read); in ReadNBytes()
112 memcpy(result + *bytes_read, pos_, bytes_to_copy); in ReadNBytes()
114 *bytes_read += bytes_to_copy; in ReadNBytes()
117 (*bytes_read == static_cast<size_t>(bytes_to_read))) { in ReadNBytes()
/external/arm-trusted-firmware/drivers/partition/
Dpartition.c48 size_t bytes_read; in load_mbr_header() local
60 PLAT_PARTITION_BLOCK_SIZE, &bytes_read); in load_mbr_header()
83 size_t bytes_read; in load_gpt_header() local
91 sizeof(gpt_header_t), &bytes_read); in load_gpt_header()
92 if ((result != 0) || (sizeof(gpt_header_t) != bytes_read)) { in load_gpt_header()
111 size_t bytes_read; in load_mbr_entry() local
123 PLAT_PARTITION_BLOCK_SIZE, &bytes_read); in load_mbr_entry()
161 size_t bytes_read; in load_gpt_entry() local
166 &bytes_read); in load_gpt_entry()
167 if (sizeof(gpt_entry_t) != bytes_read) in load_gpt_entry()

12345678910>>...15