GPAK  1.0.0
A general-purpose archive library
Macros | Functions
gpak_compressors.h File Reference
#include "gpak_export.h"
#include "gpak_data.h"
Include dependency graph for gpak_compressors.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Author
AdamFull
Date
23.04.2023
Brief Description:\n The gpak_compressors.h header file contains methods for compressing
and decompressing files used in the Gpak library for managing game archives.

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.