This is the codes contants class. It contains possible error or messages that can be returned by the compression class.
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.
This is the DATA_ERROR code. This code means that there was something that stopped the stream while it was compressing or decompressing data.
This is the ERRNO code. This code means that there was an error while flushing the data.
This is the MEM_ERROR code. This code means that there was an error while allocating memory to the compression or decompression process.
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.
This is the OK code. This code means that the compression was succesful and that there was no error while compressing.
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.
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.
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.