GPAK
1.0.0
A general-purpose archive library
|
Go to the source code of this file.
Macros | |
#define | _DEFAULT_BLOCK_SIZE 4 * 1024 * 1024 |
Functions | |
GPAK_API uint32_t | _gpak_compressor_none (gpak_t *_pak, FILE *_infile, FILE *_outfile) |
GPAK_API uint32_t | _gpak_decompressor_none (gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) |
GPAK_API uint32_t | _gpak_compressor_deflate (gpak_t *_pak, FILE *_infile, FILE *_outfile) |
GPAK_API uint32_t | _gpak_decompressor_inflate (gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) |
GPAK_API uint32_t | _gpak_compressor_zstd (gpak_t *_pak, FILE *_infile, FILE *_outfile) |
GPAK_API uint32_t | _gpak_decompressor_zstd (gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) |
GPAK_API int32_t | _gpak_compressor_generate_dictionary (gpak_t *_pak) |
This header file defines the compressor and decompressor functions for various compression algorithms used in the Gpak library. These functions are responsible for compressing and decompressing data stored within game archive files, enabling efficient storage and retrieval of game assets.
The Gpak library supports a variety of compression algorithms, including (but not limited to): Deflate, LZ4, and Zstd. Additional compression algorithms can be added by implementing the required compressor and decompressor functions, and integrating them into the Gpak library.
To use the compression and decompression functions provided by this header, include it alongside the main gpak.h header file and link against the Gpak library in your project.
Definition in file gpak_compressors.h.