2017-07-05 20:57:07 +00:00
|
|
|
#ifndef LDM_H
|
|
|
|
#define LDM_H
|
|
|
|
|
|
|
|
#include <stddef.h> /* size_t */
|
|
|
|
|
2017-07-07 19:44:29 +00:00
|
|
|
#define LDM_COMPRESS_SIZE 4
|
|
|
|
#define LDM_DECOMPRESS_SIZE 4
|
|
|
|
#define LDM_HEADER_SIZE ((LDM_COMPRESS_SIZE)+(LDM_DECOMPRESS_SIZE))
|
|
|
|
|
2017-07-10 13:32:29 +00:00
|
|
|
size_t LDM_compress(const void *src, size_t srcSize,
|
|
|
|
void *dst, size_t maxDstSize);
|
2017-07-05 20:57:07 +00:00
|
|
|
|
2017-07-10 13:32:29 +00:00
|
|
|
size_t LDM_decompress(const void *src, size_t srcSize,
|
|
|
|
void *dst, size_t maxDstSize);
|
2017-07-05 20:57:07 +00:00
|
|
|
|
2017-07-10 13:32:29 +00:00
|
|
|
void LDM_read_header(const void *src, size_t *compressSize,
|
|
|
|
size_t *decompressSize);
|
2017-07-07 19:44:29 +00:00
|
|
|
|
2017-07-05 20:57:07 +00:00
|
|
|
#endif /* LDM_H */
|