Platforms to show: All Mac Windows Linux Cross-Platform

CompressZLibMBS(buf as string, level as Integer = 9) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Compression MBS Compression Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compresses the data and returns it as string.
Example
dim s as string = "Hello World"
dim l as Integer = lenb(s)

dim c as string = CompressZLibMBS(s,9)
dim d as string = DecompressZLibMBS(c, l)

MsgBox d

Compression level is going from 0 to 9, where 0 is no compression and 9 is best compression.
Error: Optional parameter to receive the error code. (see error codes in ZLibCompressMBS)

For result and temp memory this function needs maximum something like 110% of lenb(buf).

Version 18.5 and newer use level 9 as default.

See also:

Some examples using this global method:

CompressZLibMBS(buf as string, level as Integer, byref error as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Compression MBS Compression Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compresses the data and returns it as string.

Compression level is going from 0 to 9, where 0 is no compression and 9 is best compression.
Error: Optional parameter to receive the error code. (see error codes in ZLibCompressMBS)

For result and temp memory this function needs maximum something like 110% of lenb(buf).

See also:

Some examples using this global method:

Blog Entries

The items on this page are in the following plugins: MBS Compression Plugin.


The biggest plugin in space...