zstd/contrib/long_distance_matching/ldm.h
2017-07-11 18:13:26 -07:00

23 lines
623 B
C

#ifndef LDM_H
#define LDM_H
#include <stddef.h> /* size_t */
#define LDM_COMPRESS_SIZE 4
#define LDM_DECOMPRESS_SIZE 4
#define LDM_HEADER_SIZE ((LDM_COMPRESS_SIZE)+(LDM_DECOMPRESS_SIZE))
size_t LDM_compress(const void *src, size_t srcSize,
void *dst, size_t maxDstSize);
size_t LDM_decompress(const void *src, size_t srcSize,
void *dst, size_t maxDstSize);
void LDM_readHeader(const void *src, size_t *compressSize,
size_t *decompressSize);
void LDM_test(const void *src, size_t srcSize,
void *dst, size_t maxDstSize);
#endif /* LDM_H */