ZXC 0.15.0
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
zxc_error.h File Reference

Error codes and error-name lookup for the ZXC library. More...

#include "zxc_export.h"

Go to the source code of this file.

Enumerations

enum  zxc_error_t {
  ZXC_OK = 0 , ZXC_ERROR_MEMORY = -1 , ZXC_ERROR_DST_TOO_SMALL = -2 , ZXC_ERROR_SRC_TOO_SMALL = -3 ,
  ZXC_ERROR_BAD_MAGIC = -4 , ZXC_ERROR_BAD_VERSION = -5 , ZXC_ERROR_BAD_HEADER = -6 , ZXC_ERROR_BAD_CHECKSUM = -7 ,
  ZXC_ERROR_CORRUPT_DATA = -8 , ZXC_ERROR_BAD_OFFSET = -9 , ZXC_ERROR_OVERFLOW = -10 , ZXC_ERROR_IO = -11 ,
  ZXC_ERROR_NULL_INPUT = -12 , ZXC_ERROR_BAD_BLOCK_TYPE = -13 , ZXC_ERROR_BAD_BLOCK_SIZE = -14 , ZXC_ERROR_DICT_REQUIRED = -15 ,
  ZXC_ERROR_DICT_MISMATCH = -16 , ZXC_ERROR_DICT_TOO_LARGE = -17 , ZXC_ERROR_BAD_LEVEL = -18 , ZXC_ERROR_DICT_UNSUPPORTED = -19
}
 Error codes returned by ZXC library functions. More...
 

Functions

const char * zxc_error_name (const int code)
 Returns a readable name for the given error code.
 

Detailed Description

Error codes and error-name lookup for the ZXC library.

Every public function that can fail returns a zxc_error_t code, and anything < 0 is an error. zxc_error_name() turns a code into a readable string.

Definition in file zxc_error.h.