ZXC 1.0.3
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
Library Information

Runtime-queryable library metadata. More...

Functions

int zxc_min_level (void)
 Minimum supported compression level.
int zxc_max_level (void)
 Maximum supported compression level.
int zxc_default_level (void)
 Default compression level.
const char * zxc_version_string (void)
 Library version string, "MAJOR.MINOR.PATCH".
unsigned zxc_version_number (void)
 Library version as one integer, ZXC_VERSION_NUMBER of the loaded library.
const char * zxc_version_codename (void)
 Release code name of the loaded library, ZXC_VERSION_CODENAME.

Detailed Description

Runtime-queryable library metadata.

Lets callers (filesystem integrations, bindings) discover the supported level range and the version at runtime instead of from compile-time constants alone.

Function Documentation

◆ zxc_default_level()

int zxc_default_level ( void )

Default compression level.

Returns
ZXC_LEVEL_DEFAULT (3).

Default compression level.

Returns the value of ZXC_LEVEL_DEFAULT (currently 3).

Definition at line 1168 of file zxc_common.c.

References ZXC_LEVEL_DEFAULT.

◆ zxc_max_level()

int zxc_max_level ( void )

Maximum supported compression level.

Returns
ZXC_LEVEL_ULTRA (7).

Maximum supported compression level.

Returns the value of ZXC_LEVEL_ULTRA (currently 7).

Definition at line 1161 of file zxc_common.c.

References ZXC_LEVEL_ULTRA.

◆ zxc_min_level()

int zxc_min_level ( void )

Minimum supported compression level.

Returns
ZXC_LEVEL_FASTEST (1).

Minimum supported compression level.

Returns the value of ZXC_LEVEL_FASTEST (currently 1). This allows integrators to discover the level range at runtime without relying on compile-time macros alone.

Definition at line 1154 of file zxc_common.c.

References ZXC_LEVEL_FASTEST.

◆ zxc_version_codename()

const char * zxc_version_codename ( void )

Release code name of the loaded library, ZXC_VERSION_CODENAME.

Returns
Null-terminated compile-time constant; do not free.

Definition at line 1180 of file zxc_common.c.

References ZXC_VERSION_CODENAME.

◆ zxc_version_number()

unsigned zxc_version_number ( void )

Library version as one integer, ZXC_VERSION_NUMBER of the loaded library.

Compare with the header's ZXC_VERSION_NUMBER to detect a runtime library older than the one compiled against.

Returns
MAJOR * 10000 + MINOR * 100 + PATCH.

Definition at line 1178 of file zxc_common.c.

References ZXC_VERSION_NUMBER.

◆ zxc_version_string()

const char * zxc_version_string ( void )

Library version string, "MAJOR.MINOR.PATCH".

Returns
Null-terminated compile-time constant; do not free.

Library version string, "MAJOR.MINOR.PATCH".

The returned pointer is a compile-time constant and must not be freed. Format: "MAJOR.MINOR.PATCH".

Definition at line 1176 of file zxc_common.c.

References ZXC_LIB_VERSION_STR.