Home
last modified time | relevance | path

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

/system/core/libsparse/
Dsparse_read.cpp419 unsigned int to_read; in sparse_file_read_normal() local
428 to_read = std::min(remain, (int64_t)(s->block_size)); in sparse_file_read_normal()
429 ret = read_all(fd, buf, to_read); in sparse_file_read_normal()
436 if (to_read == s->block_size) { in sparse_file_read_normal()
450 sparse_file_add_fill(s, buf[0], to_read, block); in sparse_file_read_normal()
452 sparse_file_add_fd(s, fd, offset, to_read, block); in sparse_file_read_normal()
455 remain -= to_read; in sparse_file_read_normal()
456 offset += to_read; in sparse_file_read_normal()
/system/apex/apexd/
Dapexd.cpp373 size_t to_read = std::min(bytes_left, kBufSize); in readVerityDevice() local
374 if (!android::base::ReadFully(fd.get(), buffer.data(), to_read)) { in readVerityDevice()
378 bytes_left -= to_read; in readVerityDevice()