Platforms to show: All Mac Windows Linux Cross-Platform

ZLibCompressMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Compression MBS Compression Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class for zlib compression.

See also ArchiveReaderMBS and ArchiveWriterMBS classes for more features and compression formats.

See ZLibDecompressMBS class to decompress what this class compressed.

Data Types

Constant Value Description
kASCII 1 ASCII
kBINARY 0 Binary
kTEXT 1 Text
kUNKNOWN 2 Unknown

Compression Levels

Constant Value Description
kBEST_COMPRESSION 9
kBEST_SPEED 1
kDEFAULT_COMPRESSION -1
kNO_COMPRESSION 0

Flush modes

Constant Value Description
kBLOCK 5
kFINISH 4
kFULL_FLUSH 3
kNO_FLUSH 0
kPARTIAL_FLUSH 1
kSYNC_FLUSH 2

Errors

Constant Value Description
kBUF_ERROR -5 Negative values are errors, positive values are used for special but normal events.
kDATA_ERROR -3 Negative values are errors, positive values are used for special but normal events.
kERRNO -1 Negative values are errors, positive values are used for special but normal events.
kMEM_ERROR -4 Negative values are errors, positive values are used for special but normal events.
kNEED_DICT 2 Negative values are errors, positive values are used for special but normal events.
kOK 0 Negative values are errors, positive values are used for special but normal events.
kSTREAM_END 1 Negative values are errors, positive values are used for special but normal events.
kSTREAM_ERROR -2 Negative values are errors, positive values are used for special but normal events.
kVERSION_ERROR -6 Negative values are errors, positive values are used for special but normal events.

Compression Strategies

Constant Value Description
kDEFAULT_STRATEGY 0
kFILTERED 1
kFIXED 4
kHUFFMAN_ONLY 2
kRLE 3

Compression Methods

Constant Value Description
kDEFLATED 8 The deflate compression method (the only one supported in this version)

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


ZipMBS   -   ZLibDecompressMBS


The biggest plugin in space...