GPAK
1.0.0
A general-purpose archive library
|
◆ gpak_fopen()
This function opens a file with the specified _path in the G-PAK archive.
Definition at line 389 of file gpak.c. 413 mfile->crc32_ = _gpak_decompressor_inflate(_pak, _pak->stream_, mfile->stream_, compressed_size);
GPAK_API char * filesystem_tree_file_path(filesystem_tree_node_t *_node, filesystem_tree_file_t *_file) Definition: filesystem_tree.c:236 GPAK_API filesystem_tree_file_t * filesystem_tree_find_file(filesystem_tree_node_t *_root, const char *_path) Definition: filesystem_tree.c:185 GPAK_API uint32_t _gpak_decompressor_none(gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) Definition: gpak_compressors.c:67 GPAK_API uint32_t _gpak_decompressor_inflate(gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) Definition: gpak_compressors.c:162 GPAK_API uint32_t _gpak_decompressor_zstd(gpak_t *_pak, FILE *_infile, FILE *_outfile, size_t _read_size) Definition: gpak_compressors.c:291 Definition: gpak_data.h:303 Definition: gpak_data.h:283 gpak_header_compression_algorithm_t compression_ Definition: gpak_data.h:113 References _gpak_decompressor_inflate(), _gpak_decompressor_none(), _gpak_decompressor_zstd(), gpak_entry_header::compressed_size_, gpak_header::compression_, gpak_entry_header::crc32_, gpak_file::crc32_, gpak::current_file_, gpak_file::data_, filesystem_tree_file::entry_, filesystem_tree_file_path(), filesystem_tree_find_file(), GPAK_ERROR_FILE_CRC_NOT_MATCH, GPAK_ERROR_FILE_NOT_FOUND, gpak_fclose(), GPAK_HEADER_COMPRESSION_DEFLATE, GPAK_HEADER_COMPRESSION_ZST, gpak::header_, gpak_entry_header::offset_, gpak::root_, gpak::stream_, gpak_file::stream_, and gpak_entry_header::uncompressed_size_. |