"Sputnik" help  
Sputnik Help
BinaryCompress(<binary>)

Description

Compresses binary data using the GZIP compression algorithm.

Parameters

<binary> The binary data to be compressed.

Return Value

Success: Returns compressed binary data.
Failure: Returns empty binary data.

Remarks

The BinaryCompress function takes a binary input and applies GZIP compression to reduce its size. GZIP compression is a widely used compression algorithm that achieves efficient data compression. The function compresses the input binary data and returns the compressed result.

Related

BinaryDecompress, BinaryCompressLz4, BinaryDecompressLz4

Example

Compress and decompress data:

my $compressedData = BinaryCompress((binary)"Cat");
BinaryExpandPrintLn($compressedData, false);
my $decompressedData = BinaryDecompress($compressedData);
say $decompressedData;
// PRINTS
// 1F 8B 08 00 00 00 00 00 04 00 73 4E 2C 01 00 48 ..........sN,..H
// 05 13 A6 03 00 00 00 -- -- -- -- -- -- -- -- -- ..¦....
// Cat

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org