GPAK  1.0.0
A general-purpose archive library

◆ gpak_set_compression_algorithm()

GPAK_API void gpak_set_compression_algorithm ( gpak_t _pak,
int  _algorithm 
)
Brief Description:\n Sets the compression algorithm for a G-PAK archive.

This function sets the compression algorithm to use when adding files to the G-PAK archive.

Parameters
_pakA pointer to the gpak_t.
_algorithmAn integer value representing the compression algorithm.

Definition at line 338 of file gpak.c.

339 {
340  _pak->header_.compression_ = _algorithm;
341 }
gpak_header_compression_algorithm_t compression_
Definition: gpak_data.h:113
pak_header_t header_
Definition: gpak_data.h:258

References gpak_header::compression_, and gpak::header_.