Searched refs:to_read (Results 1 – 4 of 4) sorted by relevance
/system/core/libsparse/ |
D | sparse_read.cpp | 419 unsigned int to_read; in sparse_file_read_normal() local 428 to_read = std::min(remain, (int64_t)(s->block_size)); in sparse_file_read_normal() 429 ret = read_all(fd, buf, to_read); in sparse_file_read_normal() 436 if (to_read == s->block_size) { in sparse_file_read_normal() 450 sparse_file_add_fill(s, buf[0], to_read, block); in sparse_file_read_normal() 452 sparse_file_add_fd(s, fd, offset, to_read, block); in sparse_file_read_normal() 455 remain -= to_read; in sparse_file_read_normal() 456 offset += to_read; in sparse_file_read_normal()
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 185 size_t to_read = in HashSnapshot() local 187 ssize_t read = reader->Read(&buffer, to_read); in HashSnapshot() 195 SHA256_Update(&ctx, buffer, to_read); in HashSnapshot()
|
D | cow_reader.cpp | 518 size_t to_read = std::min(length, remaining_); in Read() local 519 if (!to_read) { in Read() 523 if (!reader_->GetRawBytes(offset_, buffer, to_read, read)) { in Read()
|
/system/apex/apexd/ |
D | apexd.cpp | 394 size_t to_read = std::min(bytes_left, kBufSize); in ReadVerityDevice() local 395 if (!android::base::ReadFully(fd.get(), buffer.data(), to_read)) { in ReadVerityDevice() 398 bytes_left -= to_read; in ReadVerityDevice()
|