ZLib Error Codes for (Un-)Compressing
Previous  Top  Next

ZLib Error Codes for (Un-)Compressing

Used by

AddData() and Extract() methods as well as XbZ_Compress(), XbZ_Compress2(), and XbZ_UnCompress() functions.  

Values

Define
Value
Description
XBZ_OK
0
Operation was successful.
XBZ_STREAM_ERROR
-2
(ZLib Error Code) Compression Level invalid. Only for Compress!
XBZ_DATA_ERROR
-3
(ZLib Error Code) Corrupted Data/Buffer. Only for Uncompress!
XBZ_MEM_ERROR
-4
(ZLib Error Code) Not enough Memory.
XBZ_BUF_ERROR
-5
(ZLib Error Code) Output Buffer too small.
 
XBZ_COMP_SHRUNK * (-10)
-10
(Invalid Compression Method) "XBZ_COMP_SHRUNK".
XBZ_COMP_REDUCED1 * (-10)
-20
(Invalid Compression Method) "XBZ_COMP_REDUCED1".
XBZ_COMP_REDUCED2 * (-10)
-30
(Invalid Compression Method) "XBZ_COMP_REDUCED2".
XBZ_COMP_REDUCED3 * (-10)
-40
(Invalid Compression Method) "XBZ_COMP_REDUCED3".
XBZ_COMP_REDUCED4 * (-10)
-50
(Invalid Compression Method) "XBZ_COMP_REDUCED4".
XBZ_COMP_IMPLODED * (-10)
-60
(Invalid Compression Method) "XBZ_COMP_IMPLODED".
XBZ_COMP_TOKENIZED * (-10)
-70
(Invalid Compression Method) "XBZ_COMP_TOKENIZED".
XBZ_COMP_DEFLATE64 * (-10)
-90
(Invalid Compression Method) "XBZ_COMP_DEFLATE64".
XBZ_COMP_PKDCL * (-10)
-100
(Invalid Compression Method) "XBZ_COMP_PKDCL".
ERROR_FILE_NOT_FOUND
2
(OS Error Code) The (File) Entry could not be found in the Zip File.

ERROR_FILE_EXISTS


80
(OS Error Code) A File with the specified File Name already existed at the specified location, and the <nOverwrite> Parameter did not allow the replacing of the existing File, or the existing File could not be deleted/overwritten for some other reason (the File was Open or the Read-Only File Attribute was set, etc.)