Home
last modified time | relevance | path

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

/bootable/recovery/applypatch/
Dapplypatch.cpp296 size_t to_read = len - p; in WriteToPartition() local
297 if (to_read > sizeof(buffer)) { in WriteToPartition()
298 to_read = sizeof(buffer); in WriteToPartition()
302 while (so_far < to_read) { in WriteToPartition()
303 ssize_t read_count = TEMP_FAILURE_RETRY(ota_read(fd, buffer + so_far, to_read - so_far)); in WriteToPartition()
311 if (static_cast<size_t>(read_count) < to_read) { in WriteToPartition()
312 printf("short verify read %s at %zu: %zd %zu\n", partition, p, read_count, to_read); in WriteToPartition()
317 if (memcmp(buffer, data + p, to_read) != 0) { in WriteToPartition()
/bootable/recovery/uncrypt/
Duncrypt.cpp349 size_t to_read = static_cast<size_t>( in produce_block_map() local
351 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { in produce_block_map()
355 pos += to_read; in produce_block_map()