14 #ifndef ZYPPNG_CURL_ZCKHELPER_H_INCLUDED 15 #define ZYPPNG_CURL_ZCKHELPER_H_INCLUDED 21 #include <zypp-core/ng/base/Base> 32 ZckError(
const std::string & msg_r );
std::vector< Block > _blocks
Store and operate with byte count.
static bool isZchunkFile(const zypp::Pathname &file)
std::optional< zypp::ByteCount > _zcKHeaderSize
static bool validateZckFile(const zypp::Pathname &file, std::string &error)
zypp::AutoDispose< zckCtx * > _zchunkContext
expected< void > buildZchunkFile(const zypp::Pathname &target, const zypp::Pathname &delta, const std::optional< zypp::ByteCount > &expectedFileSize, const std::optional< zypp::ByteCount > &zcKHeaderSize)
static zypp::ByteCount minZchunkDownloadSize()
The minimum size to download to have enough data to know the full header size.
std::optional< zypp::ByteCount > _expectedFileSize
AutoDispose<int> calling ::close
SignalProxy< void(PrepareResult)> sigFinished()
Called once the zchunk build process is finished, either with error or success.
ZckError(const std::string &msg_r)
Signal< void(const std::vector< Block > &)> _sigBlocksRequired
void setFailed(const std::string &msg)
zypp::ByteCount _bytesReused
Base class for Exception.
zypp::ByteCount _bytesReused
SignalProxy< void(const std::vector< Block > &)> sigBlocksRequired()
Signal to notify the caller about required blocks, once the blocks are downloaded call cont to contin...
static PrepareResult prepareZck(const zypp::Pathname &delta, const zypp::Pathname &target, const zypp::ByteCount &expectedFileSize)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Signal< void(PrepareResult)> _sigFinished