zstd/contrib/long_distance_matching/ldm.h
2017-07-10 06:32:29 -07:00

20 lines
532 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_read_header(const void *src, size_t *compressSize,
size_t *decompressSize);
#endif /* LDM_H */