-
-
Notifications
You must be signed in to change notification settings - Fork 5
Compression API
Nenkai edited this page Jul 14, 2024
·
2 revisions
var blob = pdistd::MBlob(data);
var compressed = pdistd::Deflate(blob);
// It is good practice to then encode it into a string
var encoded = pdistd::EncodeBase64(compressed);
// var data = pdistd::DecodeBase64(str);
var blob = pdistd::MBlob(data);
var decompressed = pdistd::Inflate(blob);
var worker = pdistd::DeflateEncryptAsync(path, false);
while (!worker.done)
yield;
if (worker.result)
{
// ..
}