Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 4 of 4) 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/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp185 size_t to_read = in HashSnapshot() local
187 ssize_t read = reader->Read(&buffer, to_read); in HashSnapshot()
195 SHA256_Update(&ctx, buffer, to_read); in HashSnapshot()
Dcow_reader.cpp518 size_t to_read = std::min(length, remaining_); in Read() local
519 if (!to_read) { in Read()
523 if (!reader_->GetRawBytes(offset_, buffer, to_read, read)) { in Read()
/system/apex/apexd/
Dapexd.cpp394 size_t to_read = std::min(bytes_left, kBufSize); in ReadVerityDevice() local
395 if (!android::base::ReadFully(fd.get(), buffer.data(), to_read)) { in ReadVerityDevice()
398 bytes_left -= to_read; in ReadVerityDevice()