Home
last modified time | relevance | path

Searched refs:zstream (Results 1 – 2 of 2) sorted by relevance

/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_deflate.cpp27 int32_t PkgAlgoDeflate::DeflateData(const PkgStreamPtr outStream, z_stream &zstream, int32_t flush, in DeflateData() argument
33 ret = deflate(&zstream, flush); in DeflateData()
38 deflateLen += outBuffer.length - zstream.avail_out; in DeflateData()
46 zstream.next_out = outBuffer.buffer; in DeflateData()
47 zstream.avail_out = outBuffer.length; in DeflateData()
61 z_stream zstream; in PackCalculate() local
62 int32_t ret = InitStream(zstream, true, inBuffer, outBuffer); in PackCalculate()
73 while ((remainSize > 0) || (zstream.avail_in > 0)) { in PackCalculate()
75 if (zstream.avail_in == 0) { in PackCalculate()
81 zstream.next_in = reinterpret_cast<unsigned char *>(inBuffer.buffer); in PackCalculate()
[all …]
Dpkg_algo_deflate.h48 z_stream &zstream, PkgAlgorithmContext &context, size_t &readLen);
50 int32_t CalculateUnpackData(z_stream &zstream, uint32_t &crc, int32_t &ret,
56 int32_t InitStream(z_stream &zstream, bool zip, PkgBuffer &inBuffer, PkgBuffer &outBuffer);
58 void ReleaseStream(z_stream &zstream, bool zip) const;
61 z_stream &zstream, int32_t flush, PkgBuffer &outBuffer, size_t &destOffset) const;