Home
last modified time | relevance | path

Searched refs:BlockWriter (Results 1 - 5 of 5) sorted by relevance

/base/update/updater/services/include/applypatch/
H A Dblock_writer.h25 class BlockWriter : public DataWriter { class
28 virtual ~BlockWriter() {} in ~BlockWriter()
29 BlockWriter(int fd, BlockSet& bs) : fd_(fd), bs_(bs), totalWritten_(0), blockIndex_(0), in BlockWriter() function in Updater::BlockWriter
35 BlockWriter(const BlockWriter&) = delete;
36 const BlockWriter& operator=(const BlockWriter&) = delete;
H A Dtransfer_manager.h34 std::unique_ptr<BlockWriter> writer;
/base/update/updater/services/applypatch/
H A Dblock_writer.cpp23 bool BlockWriter::IsWriteDone() const in IsWriteDone()
28 size_t BlockWriter::GetBlocksSize() const in GetBlocksSize()
33 size_t BlockWriter::GetTotalWritten() const in GetTotalWritten()
38 bool BlockWriter::Write(const uint8_t *addr, size_t len, [[maybe_unused]] const void *context) in Write()
41 LOG(WARNING) << "BlockWriter: call writer while no more blocks need to write. skip " << len << " byte(s)"; in Write()
44 LOG(DEBUG) << "BlockWriter: try to write " << len << " byte(s)"; in Write()
65 LOG(ERROR) << "BlockWriter: Cannot seek to offset: " << offset << " Block index: " << blockIndex_; in Write()
76 LOG(ERROR) << "BlockWriter: failed to write " << written << " byte(s)."; in Write()
H A Dblock_set.cpp390 std::unique_ptr<BlockWriter> writer = std::make_unique<BlockWriter>(cmd.GetFileDescriptor(), *this); in WriteDiffToBlock()
407 std::unique_ptr<BlockWriter> writer = std::make_unique<BlockWriter>(cmd.GetFileDescriptor(), *this); in WriteDiffToBlock()
H A Dcommand_process.cpp50 writerThreadInfo->writer = std::make_unique<BlockWriter>(params.GetFileDescriptor(), bs); in Execute()

Completed in 4 milliseconds