Searched refs:bytes_to_read (Results 1 – 3 of 3) sorted by relevance
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot_reader.cpp | 229 size_t bytes_to_read = block_size_; in ReadBlock() local 231 bytes_to_read = *max_bytes; in ReadBlock() 236 CHECK(start_offset + bytes_to_read <= block_size_); in ReadBlock() 244 void* buffer = sink->GetBuffer(bytes_to_read, &actual); in ReadBlock() 245 if (!buffer || actual < bytes_to_read) { in ReadBlock() 272 memset(buffer, 0, bytes_to_read); in ReadBlock() 274 PartialSink partial_sink(buffer, bytes_to_read, start_offset); in ReadBlock() 289 if (!android::base::ReadFullyAtOffset(fd, &data, bytes_to_read, offset)) { in ReadBlock() 294 PartialSink partial_sink(buffer, bytes_to_read, start_offset); in ReadBlock() 300 for (size_t i = 0; i < bytes_to_read; i++) { in ReadBlock() [all …]
|
/aosp14/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
H A D | cow_decompress.cpp | 46 size_t bytes_to_read = std::min(buffer_size, stream_remaining); in Decompress() local 47 while (bytes_to_read) { in Decompress() 49 if (!stream_->Read(buffer_pos, bytes_to_read, &read)) { in Decompress() 61 bytes_to_read -= read; in Decompress()
|
/aosp14/system/core/fastboot/device/ |
H A D | usb_client.cpp | 261 auto bytes_to_read = std::min(len - bytes_read_total, kFbFfsNumBufs * kFbFfsBufSize); in Read() local 263 handle_->read(handle_.get(), char_data, bytes_to_read, true /* allow_partial */); in Read() 270 if (static_cast<size_t>(bytes_read_now) < bytes_to_read) { in Read()
|