/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/ |
D | byte_array.cc | 113 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 …]
|
/third_party/libcoap/src/ |
D | coap_netif.c | 73 ssize_t bytes_read; in coap_netif_dgrm_read() local 76 bytes_read = coap_socket_recv(&session->sock, packet); in coap_netif_dgrm_read() 78 if (bytes_read == -1) { in coap_netif_dgrm_read() 83 } else if (bytes_read > 0) { in coap_netif_dgrm_read() 86 coap_session_str(session), bytes_read); in coap_netif_dgrm_read() 88 return bytes_read; in coap_netif_dgrm_read() 100 ssize_t bytes_read; in coap_netif_dgrm_read_ep() local 103 bytes_read = coap_socket_recv(&endpoint->sock, packet); in coap_netif_dgrm_read_ep() 105 if (bytes_read == -1) { in coap_netif_dgrm_read_ep() 110 } else if (bytes_read > 0) { in coap_netif_dgrm_read_ep() [all …]
|
/third_party/ltp/testcases/kernel/fs/fs_di/ |
D | frag.c | 48 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()
|
/third_party/gn/src/base/files/ |
D | file_posix.cc | 153 int bytes_read = 0; in Read() local 156 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, size - bytes_read, in Read() 157 offset + bytes_read)); in Read() 161 bytes_read += rv; in Read() 162 } while (bytes_read < size); in Read() 164 return bytes_read ? bytes_read : rv; in Read() 172 int bytes_read = 0; in ReadAtCurrentPos() local 175 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 179 bytes_read += rv; in ReadAtCurrentPos() 180 } while (bytes_read < size); in ReadAtCurrentPos() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | jpeg2000_parser.c | 38 uint64_t bytes_read; member 55 m->bytes_read = 0; in reset_context() 98 uint64_t bytes_read = m->bytes_read; in find_frame_end() local 106 bytes_read++; in find_frame_end() 116 bytes_read += skip; in find_frame_end() 145 …if ((state64 & 0xFFFFFFFF) == 0x0000000C && bytes_read >= 3) { // Indicates start of JP2 file. Che… in find_frame_end() 184 m->bytes_read = bytes_read; in find_frame_end()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfscat.c | 340 s64 bytes_read, written; in cat() local 367 bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer); in cat() 368 if (bytes_read > 0) in cat() 369 bytes_read *= block_size; in cat() 371 bytes_read = ntfs_attr_pread(attr, offset, bufsize, buffer); in cat() 374 if (bytes_read == -1) { in cat() 378 if (!bytes_read) in cat() 381 written = fwrite(buffer, 1, bytes_read, stdout); in cat() 382 if (written != bytes_read) { in cat() 386 offset += bytes_read; in cat()
|
D | ntfsdecrypt.c | 1370 s64 bytes_read, written, offset, total; in ntfs_cat_decrypt() local 1395 bytes_read = ntfs_attr_pread(attr, offset, 512, buffer); in ntfs_cat_decrypt() 1396 if (bytes_read == -1) { in ntfs_cat_decrypt() 1400 if (!bytes_read) in ntfs_cat_decrypt() 1403 bytes_read) { in ntfs_cat_decrypt() 1406 (long long)bytes_read, (long long)offset, in ntfs_cat_decrypt() 1410 if (bytes_read > total) in ntfs_cat_decrypt() 1411 bytes_read = total; in ntfs_cat_decrypt() 1412 written = fwrite(buffer, 1, bytes_read, stdout); in ntfs_cat_decrypt() 1413 if (written != bytes_read) { in ntfs_cat_decrypt() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | pp_bnk.c | 52 uint32_t bytes_read; member 171 trk->bytes_read = 0; in pp_bnk_read_header() 241 if (trk->bytes_read == trk->data_size) in pp_bnk_read_packet() 244 if ((ret = avio_seek(s->pb, trk->data_offset + trk->bytes_read, SEEK_SET)) < 0) in pp_bnk_read_packet() 246 else if (ret != trk->data_offset + trk->bytes_read) in pp_bnk_read_packet() 249 size = FFMIN(trk->data_size - trk->bytes_read, PP_BNK_MAX_READ_SIZE); in pp_bnk_read_packet() 255 trk->data_size = trk->bytes_read; in pp_bnk_read_packet() 270 trk->bytes_read += ret; in pp_bnk_read_packet() 309 ctx->tracks[0].bytes_read = 0; in pp_bnk_seek() 310 ctx->tracks[1].bytes_read = 0; in pp_bnk_seek() [all …]
|
D | scd.c | 75 uint32_t bytes_read; member 186 track->bytes_read = 0; in scd_read_track() 303 if (trk->bytes_read >= trk->length) in scd_read_packet() 306 if ((ret = avio_seek(s->pb, trk->absolute_offset + trk->bytes_read, SEEK_SET)) < 0) in scd_read_packet() 315 size = FFMIN(trk->length - trk->bytes_read, 4096); in scd_read_packet() 321 trk->length = trk->bytes_read; in scd_read_packet() 328 pkt->pts = trk->bytes_read / (par->ch_layout.nb_channels * sizeof(uint16_t)); in scd_read_packet() 332 trk->bytes_read += ret; in scd_read_packet() 352 ctx->tracks[i].bytes_read = 0; in scd_seek()
|
/third_party/node/deps/cares/src/lib/ |
D | ares_rand.c | 262 size_t bytes_read = 0; in ares__rand_bytes_fetch() local 274 size_t n = len - bytes_read; in ares__rand_bytes_fetch() 278 ssize_t rv = getrandom(buf + bytes_read, n > 256 ? 256 : n, 0); in ares__rand_bytes_fetch() 288 bytes_read += (size_t)rv; in ares__rand_bytes_fetch() 289 if (bytes_read == len) { in ares__rand_bytes_fetch() 301 size_t rv = fread(buf + bytes_read, 1, len - bytes_read, in ares__rand_bytes_fetch() 307 bytes_read += rv; in ares__rand_bytes_fetch() 308 if (bytes_read == len) { in ares__rand_bytes_fetch()
|
/third_party/node/deps/v8/src/base/platform/ |
D | platform-aix.cc | 108 int bytes_read = -1; in GetSharedLibraryAddresses() local 110 bytes_read++; in GetSharedLibraryAddresses() 111 if (bytes_read >= MAP_LENGTH - 1) break; in GetSharedLibraryAddresses() 112 rc = read(fd, buffer + bytes_read, 1); in GetSharedLibraryAddresses() 114 } while (buffer[bytes_read] != '\n'); in GetSharedLibraryAddresses() 115 buffer[bytes_read] = 0; in GetSharedLibraryAddresses() 121 buffer[bytes_read] = 0; in GetSharedLibraryAddresses()
|
/third_party/fsverity-utils/programs/ |
D | cmd_dump_metadata.c | 72 int bytes_read; in fsverity_cmd_dump_metadata() local 136 bytes_read = ioctl(file.fd, FS_IOC_READ_VERITY_METADATA, &arg); in fsverity_cmd_dump_metadata() 137 if (bytes_read < 0) { in fsverity_cmd_dump_metadata() 142 if (bytes_read == 0) in fsverity_cmd_dump_metadata() 144 if (!full_write(&stdout_filedes, buf, bytes_read)) in fsverity_cmd_dump_metadata() 146 arg.offset += bytes_read; in fsverity_cmd_dump_metadata()
|
/third_party/libexif/libexif/ |
D | exif-loader.c | 89 unsigned int bytes_read; member 145 if (!eld || (len && !buf) || (eld->bytes_read >= eld->size)) in exif_loader_copy() 155 len = MIN (len, eld->size - eld->bytes_read); in exif_loader_copy() 156 memcpy (eld->buf + eld->bytes_read, buf, len); in exif_loader_copy() 157 eld->bytes_read += len; in exif_loader_copy() 159 return (eld->bytes_read >= eld->size) ? 0 : 1; in exif_loader_copy() 419 loader->bytes_read = 0; in exif_loader_reset() 431 !loader->bytes_read) in exif_loader_get_data() 436 exif_data_load_data (ed, loader->buf, loader->bytes_read); in exif_loader_get_data() 454 s = loader->bytes_read; in exif_loader_get_buf()
|
/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
D | gdb-server.cc | 227 uint32_t bytes_read = 0; in GetWasmMemory() local 228 RunSyncTask([this, &bytes_read, module_id, offset, buffer, size]() { in GetWasmMemory() 232 bytes_read = module_debug->GetWasmMemory(GetTarget().GetCurrentIsolate(), in GetWasmMemory() 236 return bytes_read; in GetWasmMemory() 242 uint32_t bytes_read = 0; in GetWasmData() local 243 RunSyncTask([this, &bytes_read, module_id, offset, buffer, size]() { in GetWasmData() 247 bytes_read = module_debug->GetWasmData(GetTarget().GetCurrentIsolate(), in GetWasmData() 251 return bytes_read; in GetWasmData() 257 uint32_t bytes_read = 0; in GetWasmModuleBytes() local 258 RunSyncTask([this, &bytes_read, wasm_addr, buffer, size]() { in GetWasmModuleBytes() [all …]
|
D | wasm-module-debug.cc | 292 uint32_t bytes_read = 0; in GetWasmMemory() local 299 bytes_read = size; in GetWasmMemory() 301 bytes_read = static_cast<uint32_t>(mem_size) - offset; in GetWasmMemory() 302 memcpy(buffer, mem_start + offset, bytes_read); in GetWasmMemory() 305 return bytes_read; in GetWasmMemory() 312 uint32_t bytes_read = 0; in GetWasmData() local 326 bytes_read = size; in GetWasmData() 328 bytes_read = static_cast<uint32_t>(mem_size) - offset; in GetWasmData() 329 memcpy(buffer, mem_start + offset, bytes_read); in GetWasmData() 333 return bytes_read; in GetWasmData() [all …]
|
/third_party/gn/src/gn/ |
D | exec_process.cc | 124 DWORD bytes_read = 0; in ExecProcess() local 126 ReadFile(out_read, buffer, kBufferSize, &bytes_read, nullptr); in ExecProcess() 127 if (!success || bytes_read == 0) in ExecProcess() 129 std_out->append(buffer, bytes_read); in ExecProcess() 147 int bytes_read = HANDLE_EINTR(read(fd, buffer, sizeof(buffer))); 148 if (bytes_read == -1) { 150 } else if (bytes_read <= 0) { 153 output->append(buffer, bytes_read);
|
/third_party/node/src/crypto/ |
D | crypto_bio.cc | 260 size_t bytes_read = 0; in Read() local 265 while (bytes_read < expected) { in Read() 277 bytes_read += avail; in Read() 283 CHECK_EQ(expected, bytes_read); in Read() 284 length_ -= bytes_read; in Read() 289 return bytes_read; in Read() 317 size_t bytes_read = 0; in IndexOf() local 322 while (bytes_read < max) { in IndexOf() 337 bytes_read += off; in IndexOf() 342 return bytes_read; in IndexOf() [all …]
|
/third_party/node/deps/openssl/openssl/apps/ |
D | s_time.c | 128 long bytes_read = 0, finishtime = 0; in s_time_main() local 273 bytes_read = 0; in s_time_main() 289 bytes_read += i; in s_time_main() 317 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 321 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main() 355 bytes_read = 0; in s_time_main() 371 bytes_read += i; in s_time_main() 396 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 400 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
|
/third_party/openssl/apps/ |
D | s_time.c | 128 long bytes_read = 0, finishtime = 0; in s_time_main() local 273 bytes_read = 0; in s_time_main() 289 bytes_read += i; in s_time_main() 317 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 321 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main() 355 bytes_read = 0; in s_time_main() 371 bytes_read += i; in s_time_main() 396 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main() 400 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
|
/third_party/libuv/test/ |
D | test-ipc-heavy-traffic-deadlock-bug.c | 47 static size_t bytes_read; variable 98 bytes_read += nread; in read_cb() 104 if (bytes_read >= XFER_SIZE) { in read_cb() 117 bytes_read = 0; in do_writes_and_reads() 130 ASSERT(bytes_read == XFER_SIZE); in do_writes_and_reads()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
D | font_data_test.cc | 158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in ReadFontDataWithBuffer() local 159 EXPECT_GE(bytes_read, 0); in ReadFontDataWithBuffer() 160 std::copy(buffer.begin(), buffer.begin() + bytes_read, b->begin() + index); in ReadFontDataWithBuffer() 161 index += bytes_read; in ReadFontDataWithBuffer() 172 int32_t bytes_read = in ReadFontDataWithSlidingWindow() local 174 EXPECT_GE(bytes_read, 0); in ReadFontDataWithSlidingWindow() 175 index += bytes_read; in ReadFontDataWithSlidingWindow() 205 int32_t bytes_read = rfd->ReadBytes(index, &(b[0]), index, sliding_size); in WriteFontDataWithSlidingWindow() local 207 index += bytes_read; in WriteFontDataWithSlidingWindow()
|
D | byte_array_test.cc | 39 int32_t bytes_read = ba->Get(index, buffer); in ReadByteArrayWithBuffer() local 40 std::copy(buffer->begin(), buffer->begin() + bytes_read, in ReadByteArrayWithBuffer() 42 index += bytes_read; in ReadByteArrayWithBuffer() 54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_size); in ReadByteArrayWithSlidingWindow() local 55 index += bytes_read; in ReadByteArrayWithSlidingWindow()
|
/third_party/node/deps/v8/src/d8/ |
D | d8-posix.cc | 272 ssize_t bytes_read; in ChildLaunchedOK() local 275 bytes_read = read(exec_error_fds[kReadFD], &err, sizeof(err)); in ChildLaunchedOK() 276 } while (bytes_read == -1 && errno == EINTR); in ChildLaunchedOK() 277 if (bytes_read != 0) { in ChildLaunchedOK() 299 int bytes_read; in GetStdout() local 301 bytes_read = static_cast<int>( in GetStdout() 303 if (bytes_read == -1) { in GetStdout() 316 if (bytes_read + fullness > 0) { in GetStdout() 317 int length = bytes_read == 0 ? bytes_read + fullness in GetStdout() 319 buffer, bytes_read + fullness); in GetStdout() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | seed_material.cc | 176 int bytes_read = read(dev_urandom, buffer, buffer_size); 178 success = (bytes_read > 0); 180 buffer += bytes_read; 181 buffer_size -= bytes_read; 182 } else if (bytes_read == -1 && read_error == EINTR) {
|
/third_party/rust/crates/nix/test/ |
D | test_sendfile.rs | 107 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_freebsd() localVariable 108 assert_eq!(bytes_written as usize, bytes_read); in test_sendfile_freebsd() 156 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_dragonfly() localVariable 157 assert_eq!(bytes_written as usize, bytes_read); in test_sendfile_dragonfly() 205 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_darwin() localVariable 206 assert_eq!(bytes_written as usize, bytes_read); in test_sendfile_darwin()
|