Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/
Drecovery-persist.cpp141 const auto bytes_to_read = std::min<size_t>(bytes_remain, buf1.size()); in compare_file() local
143 if (!android::base::ReadFully(fd1, buf1.data(), bytes_to_read)) { in compare_file()
147 if (!android::base::ReadFully(fd2, buf2.data(), bytes_to_read)) { in compare_file()
151 if (memcmp(buf1.data(), buf2.data(), bytes_to_read) != 0) { in compare_file()
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp111 uint64_t bytes_to_read = static_cast<uint64_t>(range_end - range_start) * source_block_size_; in ReadBlockAlignedData() local
112 if (!android::base::ReadFullyAtOffset(fd_, next_out, bytes_to_read, bytes_start)) { in ReadBlockAlignedData()
113 PLOG(ERROR) << "Failed to read " << bytes_to_read << " bytes at offset " << bytes_start; in ReadBlockAlignedData()
117 next_out += bytes_to_read; in ReadBlockAlignedData()