Project Alice
Loading...
Searching...
No Matches
zstd_common.c File Reference
#include "error_private.h"
#include "zstd_internal.h"
Include dependency graph for zstd_common.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZSTD_DEPS_NEED_MALLOC
 

Functions

unsigned ZSTD_versionNumber (void)
 
const char * ZSTD_versionString (void)
 
unsigned ZSTD_isError (size_t code)
 
const char * ZSTD_getErrorName (size_t code)
 
ZSTD_ErrorCode ZSTD_getErrorCode (size_t code)
 
const char * ZSTD_getErrorString (ZSTD_ErrorCode code)
 

Macro Definition Documentation

◆ ZSTD_DEPS_NEED_MALLOC

#define ZSTD_DEPS_NEED_MALLOC

Definition at line 16 of file zstd_common.c.

Function Documentation

◆ ZSTD_getErrorCode()

ZSTD_ErrorCode ZSTD_getErrorCode ( size_t  code)

ZSTD_getError() : convert a size_t function result into a proper ZSTD_errorCode enum

Definition at line 44 of file zstd_common.c.

Here is the call graph for this function:

◆ ZSTD_getErrorName()

const char * ZSTD_getErrorName ( size_t  code)

ZSTD_getErrorName() : provides error code string from function result (useful for debugging)

Definition at line 40 of file zstd_common.c.

Here is the call graph for this function:

◆ ZSTD_getErrorString()

const char * ZSTD_getErrorString ( ZSTD_ErrorCode  code)

ZSTD_getErrorString() : provides error code string from enum

Definition at line 48 of file zstd_common.c.

Here is the call graph for this function:

◆ ZSTD_isError()

unsigned ZSTD_isError ( size_t  code)

ZSTD_isError() : tells if a return value is an error code symbol is required for external callers

Definition at line 36 of file zstd_common.c.

Here is the call graph for this function:

◆ ZSTD_versionNumber()

unsigned ZSTD_versionNumber ( void  )

ZSTD_versionNumber() : Return runtime library version, the value is (MAJOR*100*100 + MINOR*100 + RELEASE).

Definition at line 24 of file zstd_common.c.

◆ ZSTD_versionString()

const char * ZSTD_versionString ( void  )

ZSTD_versionString() : Return runtime library version, like "1.4.5". Requires v1.3.0+.

Definition at line 26 of file zstd_common.c.