Searched refs:to_read (Results 1 – 3 of 3) sorted by relevance
192 size_t to_read = len - p; in WriteBufferToPartition() local193 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()
166 size_t to_read = std::min(remain, 1024 * kBlockSize); in ReadBlocks() local167 if (!android::base::ReadFully(fd.get(), buf.data(), to_read)) { in ReadBlocks()171 remain -= to_read; in ReadBlocks()
371 size_t to_read = static_cast<size_t>( in ProductBlockMap() local373 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { in ProductBlockMap()377 pos += to_read; in ProductBlockMap()