Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp192 size_t to_read = len - p; in WriteBufferToPartition() local
193 if (to_read > sizeof(buffer)) { in WriteBufferToPartition()
194 to_read = sizeof(buffer); in WriteBufferToPartition()
197 if (!android::base::ReadFully(fd, buffer, to_read)) { in WriteBufferToPartition()
202 if (memcmp(buffer, data + p, to_read) != 0) { in WriteBufferToPartition()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp166 size_t to_read = std::min(remain, 1024 * kBlockSize); in ReadBlocks() local
167 if (!android::base::ReadFully(fd.get(), buf.data(), to_read)) { in ReadBlocks()
171 remain -= to_read; in ReadBlocks()
/bootable/recovery/uncrypt/
Duncrypt.cpp371 size_t to_read = static_cast<size_t>( in ProductBlockMap() local
373 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { in ProductBlockMap()
377 pos += to_read; in ProductBlockMap()