.compression().constants().level()
Access:
public

This is the compession level contants class. It contains constants that can be used in the level setting.

Summary

Name
Description
Returns the BEST_COMPRESSION constant.
Returns the DEFAULT_COMPRESSION constant.
no
Returns the NO_COMPRESSION constant.
Returns the BEST_SPEED constant.

Functions

.compression()
Access:
public
Summary:
Returns the BEST_COMPRESSION constant.

This is the BEST_COMPRESSION constant. When it's used the compression class will compress the data as much as possible. This will take more time than the other options.

Returns

Type
Constant
Description
Z_BEST_COMPRESSION
.default()
Access:
public
Summary:
Returns the DEFAULT_COMPRESSION constant.

This is the DEFAULT_COMPRESSION constant. When it's used the compression class will combine speed with amount of compression to create the highest possible speed/compression ratio.

Returns

Type
Constant
Description
Z_DEFAULT_COMPRESSION
.no()
Access:
public
Summary:
Returns the NO_COMPRESSION constant.

This is the NO_COMPRESSION constant. When it's used the compression class won't compress anything.

Returns

Type
Constant
Description
Z_NO_COMPRESSION
.speed()
Access:
public
Summary:
Returns the BEST_SPEED constant.

This is the BEST_SPEED constant. When it's used the compression class will compress with as fast as possible, meaning the compression won't be as good.

Returns

Type
Constant
Description
Z_BEST_SPEED