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

This is the codes contants class. It contains possible error or messages that can be returned by the compression class.

Summary

Name
Description
Returns the BUF_ERROR code.
Returns the DATA_ERROR code.
Returns the ERRNO code.
Returns the MEM_ERROR code.
Returns the NEED_DICT code.
ok
Returns the OK code.
Returns the STREAM_END code.
Returns the STREAM_ERROR code.
Returns the VERSION_ERROR code.

Functions

.buferror()
Access:
public
Summary:
Returns the BUF_ERROR code.

This is the BUF_ERROR code. This code means that there was an error while trying to write data to the buffer since it was full.

Returns

Type
Constant
Description
Z_BUF_ERROR
.dataerror()
Access:
public
Summary:
Returns the DATA_ERROR code.

This is the DATA_ERROR code. This code means that there was something that stopped the stream while it was compressing or decompressing data.

Returns

Type
Constant
Description
Z_DATA_ERROR
.errno()
Access:
public
Summary:
Returns the ERRNO code.

This is the ERRNO code. This code means that there was an error while flushing the data.

Returns

Type
Constant
Description
Z_ERRNO
.memerror()
Access:
public
Summary:
Returns the MEM_ERROR code.

This is the MEM_ERROR code. This code means that there was an error while allocating memory to the compression or decompression process.

Returns

Type
Constant
Description
Z_MEM_ERROR
.needdict()
Access:
public
Summary:
Returns the NEED_DICT code.

This is the NEED_DICT code. This code means that the compression stream was trying to decompress something but couldn't find a dictionary. This is list of quick translations the decompression class uses to quickly decompress data.

Returns

Type
Constant
Description
Z_NEED_DICT
.ok()
Access:
public
Summary:
Returns the OK code.

This is the OK code. This code means that the compression was succesful and that there was no error while compressing.

Returns

Type
Constant
Description
Z_OK
.streamend()
Access:
public
Summary:
Returns the STREAM_END code.

This is the STREAM_END code. This code means that the stream has been enden but something is still trying to add data to the stream.

Returns

Type
Constant
Description
Z_STREAM_END
.streamerror()
Access:
public
Summary:
Returns the STREAM_ERROR code.

This is the STREAM_ERROR code. This code means that there was an error while accessing a file that needs to be written to or read from.

Returns

Type
Constant
Description
Z_STREAM_ERROR
.versionerror()
Access:
public
Summary:
Returns the VERSION_ERROR code.

This is the VERSION_ERROR code. This code means that there was an error since the version for zlib the user is using doesn't support the requested compression or decompression type.

Returns

Type
Constant
Description
Z_VERSION_ERROR