mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Revise Utils::Gzip::decompress
Rename from uncompress to decompress Change signature Use proper casting Use larger buffer for the output of inflate() Reserve 1 MBytes for output buffer Change function signature
This commit is contained in:
parent
302c8ba850
commit
617f19e599
4 changed files with 44 additions and 40 deletions
|
@ -37,7 +37,7 @@ namespace Utils
|
|||
namespace Gzip
|
||||
{
|
||||
QByteArray compress(const QByteArray &data, int level = 6, bool *ok = nullptr);
|
||||
bool uncompress(QByteArray src, QByteArray &dest);
|
||||
QByteArray decompress(const QByteArray &data, bool *ok = nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue