Home
last modified time | relevance | path

Searched refs:PkgAlgorithmLz4 (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algo_lz4.h34 class PkgAlgorithmLz4 : public PkgAlgorithm {
43 explicit PkgAlgorithmLz4(const Lz4FileInfo &config);
45 ~PkgAlgorithmLz4() override {} in ~PkgAlgorithmLz4()
83 class PkgAlgorithmBlockLz4 : public PkgAlgorithmLz4 {
86 explicit PkgAlgorithmBlockLz4(const Lz4FileInfo &config) : PkgAlgorithmLz4(config) {} in PkgAlgorithmBlockLz4()
H A Dpkg_algo_lz4.cpp24 PkgAlgorithmLz4::PkgAlgorithmLz4(const Lz4FileInfo &config) : PkgAlgorithm(), in PkgAlgorithmLz4() function in Hpackage::PkgAlgorithmLz4
42 int32_t PkgAlgorithmLz4::AdpLz4Compress(const uint8_t *src, uint8_t *dest, in AdpLz4Compress()
53 int32_t PkgAlgorithmLz4::AdpLz4Decompress(const uint8_t *src, uint8_t *dest, uint32_t srcSize, in AdpLz4Decompress()
210 int32_t PkgAlgorithmLz4::GetPackParam(LZ4F_compressionContext_t &ctx, LZ4F_preferences_t &preferenc… in GetPackParam()
245 int32_t PkgAlgorithmLz4::PackCalculate(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in PackCalculate()
297 int32_t PkgAlgorithmLz4::Pack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Pack()
342 int32_t PkgAlgorithmLz4::GetUnpackParam(LZ4F_decompressionContext_t &ctx, const PkgStreamPtr inStre… in GetUnpackParam()
395 int32_t PkgAlgorithmLz4::UnpackDecode(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in UnpackDecode()
443 int32_t PkgAlgorithmLz4::Unpack(const PkgStreamPtr inStream, const PkgStreamPtr outStream, in Unpack()
496 void PkgAlgorithmLz4::UpdateFileInfo(PkgManager::FileInfoPtr info) const in UpdateFileInfo()
H A Dpkg_algorithm.cpp231 return std::make_shared<PkgAlgorithmLz4>(*info); in GetAlgorithm()
/ohos5.0/base/update/updater/services/package/pkg_package/
H A Dpkg_lz4file.cpp117 if (magicNumber == PkgAlgorithmLz4::LZ4S_MAGIC_NUMBER) { in DecodeHeader()
119 } else if (magicNumber == PkgAlgorithmLz4::LZ4B_MAGIC_NUMBER) { in DecodeHeader()
187 PkgBuffer buffer(nullptr, sizeof(PkgAlgorithmLz4::LZ4B_MAGIC_NUMBER)); in LoadPackage()
193 if (readLen != sizeof(PkgAlgorithmLz4::LZ4B_MAGIC_NUMBER)) { in LoadPackage()
198 srcOffset += sizeof(PkgAlgorithmLz4::LZ4B_MAGIC_NUMBER); in LoadPackage()
202 if (magicNumber == PkgAlgorithmLz4::LZ4S_MAGIC_NUMBER || in LoadPackage()
203 magicNumber == PkgAlgorithmLz4::LZ4B_MAGIC_NUMBER) { in LoadPackage()
/ohos5.0/base/update/updater/test/unittest/package/
H A Dpkg_algo_unittest.cpp168 PkgAlgorithmLz4 a2(config);
176 PkgAlgorithmLz4 *a8 = new PkgAlgorithmLz4(config);