libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
compress.h
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
8 *
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
12 *
13 * CDDL HEADER END
14*/
15/*
16 * Copyright 2023 Saso Kiselkov. All rights reserved.
17 */
23#ifndef _ACF_UTILS_COMPRESS_H_
24#define _ACF_UTILS_COMPRESS_H_
25
26#include "types.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32API_EXPORT bool_t zlib_test(const void *in_buf, size_t len);
33API_EXPORT void *zlib_compress(void *in_buf, size_t len, size_t *out_len);
34API_EXPORT void *zlib_decompress(void *in_buf, size_t len, size_t *out_len_p);
35
36API_EXPORT bool_t test_7z(const void *in_buf, size_t len);
37API_EXPORT void *decompress_7z(const char *filename, size_t *out_len);
38
39API_EXPORT void *decompress_zip(void *in_buf, size_t len, size_t *out_len);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* _ACF_UTILS_COMPRESS_H_ */
void * zlib_decompress(void *in_buf, size_t len, size_t *out_len_p)
bool_t zlib_test(const void *in_buf, size_t len)
void * decompress_7z(const char *filename, size_t *out_len)
Definition compress_7z.c:61
bool_t test_7z(const void *in_buf, size_t len)
Definition compress_7z.c:41
void * zlib_compress(void *in_buf, size_t len, size_t *out_len)