Searched refs:to_read (Results 1 – 2 of 2) sorted by relevance
| /bootable/recovery/applypatch/ |
| D | applypatch.cpp | 427 size_t to_read = len - p; in WriteToPartition() local 428 if (to_read > sizeof(buffer)) { in WriteToPartition() 429 to_read = sizeof(buffer); in WriteToPartition() 433 while (so_far < to_read) { in WriteToPartition() 435 TEMP_FAILURE_RETRY(ota_read(fd, buffer+so_far, to_read-so_far)); in WriteToPartition() 441 if (static_cast<size_t>(read_count) < to_read) { in WriteToPartition() 443 partition, p, read_count, to_read, strerror(errno)); in WriteToPartition() 448 if (memcmp(buffer, data+p, to_read) != 0) { in WriteToPartition()
|
| /bootable/recovery/uncrypt/ |
| D | uncrypt.cpp | 324 size_t to_read = static_cast<size_t>( in produce_block_map() local 326 if (!android::base::ReadFully(fd.get(), buffers[tail].data(), to_read)) { in produce_block_map() 330 pos += to_read; in produce_block_map()
|