Home
last modified time | relevance | path

Searched refs:RawWriter (Results 1 - 3 of 3) sorted by relevance

/base/update/updater/services/applypatch/
H A Draw_writer.h26 class RawWriter : public DataWriter { class
30 RawWriter(const std::string path, uint64_t offset) : fd_(-1), path_(path), offset_(offset) {} in RawWriter() function in Updater::RawWriter
31 RawWriter(const std::string path, uint64_t startAddr, uint64_t offset) : fd_(-1), in RawWriter() function in Updater::RawWriter
34 virtual ~RawWriter() in ~RawWriter()
46 RawWriter(const RawWriter&) = delete;
48 const RawWriter& operator=(const RawWriter&) = delete;
H A Draw_writer.cpp28 return std::make_unique<RawWriter>(path, startAddr, offset); in RegisterRawWriter()
32 bool RawWriter::Write(const uint8_t *addr, size_t len, [[maybe_unused]] const void *context) in Write()
35 LOG(ERROR) << "RawWriter: invalid address."; in Write()
40 LOG(WARNING) << "RawWriter: write length is 0, skip."; in Write()
57 int RawWriter::WriteInternal(int fd, const uint8_t *data, size_t len) in WriteInternal()
64 LOG(ERROR) << "RawWriter: failed to seek file to " << offset_ << " : " << strerror(errno); in WriteInternal()
71 LOG(ERROR) << "RawWriter: failed to write data of len " << len << " : " << strerror(errno); in WriteInternal()
H A Ddata_writer.cpp64 return std::make_unique<RawWriter>(path, offset); in CreateDataWriter()

Completed in 2 milliseconds