Home
last modified time | relevance | path

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

/system/core/libsparse/
Dsparse_read.cpp339 unsigned int to_read; in sparse_file_read_normal() local
348 to_read = std::min(remain, (int64_t)(s->block_size)); in sparse_file_read_normal()
349 ret = read_all(fd, buf, to_read); in sparse_file_read_normal()
356 if (to_read == s->block_size) { in sparse_file_read_normal()
370 sparse_file_add_fill(s, buf[0], to_read, block); in sparse_file_read_normal()
372 sparse_file_add_fd(s, fd, offset, to_read, block); in sparse_file_read_normal()
375 remain -= to_read; in sparse_file_read_normal()
376 offset += to_read; in sparse_file_read_normal()