Compression: CompressZLibMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem