Compression Utilities

CSW::Compress Array Of Bytes

Compress an array of Bytes using ZLIB.
Use Length() node to see the difference in size.

Inputs

Data Array
Array of Bytes

Array of Bytes that will be compressed.

Outputs

Compressed Data Array
Array of Bytes

The Compressed version of the DataArray.

Return Value
Boolean

Is the CompressedDataArray result less in size than the DataArray? When the DataArray input is too small (less than 100 bytes), the result is usually bigger.

CSW::Decompress Array Of Bytes

Decompress an array of Bytes using ZLIB.
Use Length() node to see the difference in size.

Inputs

Data Array
Array of Bytes

Array of Bytes that will be compressed.

Outputs

Decompressed Data Array
Array of Bytes

The Decompressed Version of the Array Of Bytes.

CSW::String To Bytes

Convert a String into an Array of Bytes. Useful for sending data through the network.

Inputs

In String
String

The String to be converted.

Use Utf 8
Boolean

Convert the text to Standard UTF-8 before compressing it. Useful for sending data through the network.

Outputs

Return Value
Array of Bytes

An Array of Bytes representing the text.

CSW::Bytes To String

Convert an Array of Bytes into String.

Inputs

Data Array
Array of Bytes

The Array of Bytes to be converted.

Outputs

Return Value
String

A String based on the array of bytes.

CSW::Convert Object To String (Compressed)

Convert an Object into a Compressed String
Useful for sending objects data trough the network
Note: Object is not deleted in the process

Inputs

Object
Object Object Reference

The Object that will be converted.

Outputs

Compressed Data String
String

The String Result.

CSW::Restore Object From String (Compressed)

Restore and Object from a String Input.
Caution: The String must be from a previously ConvertObjectToString of the same type of the object.
Note: CompressedDataString is not deleted in the process

Inputs

In
Exec

Object
Object Object Reference

The Object that will be Restored.

Compressed Data String
String

The String Input.

Outputs

Out
Exec

Return Value
Object Object Reference

Updated: