TinyLzmaCompress.h 734 B

123456789101112131415161718192021
  1. // TinyLZMA
  2. // Source from https://github.com/WangXuan95/TinyLzma
  3. #ifndef __TINY_LZMA_COMPRESS_H__
  4. #define __TINY_LZMA_COMPRESS_H__
  5. #include <stdint.h>
  6. #include <stddef.h>
  7. int tinyLzmaCompress (const uint8_t *p_src, size_t src_len, uint8_t *p_dst, size_t *p_dst_len);
  8. int tinyLzmaCompressToZipContainer (const uint8_t *p_src, size_t src_len, uint8_t *p_dst, size_t *p_dst_len, const char *file_name_in_zip);
  9. // return codes of tinyLzmaCompressor and tinyLzmaCompressToZipContainer --------------------
  10. #define R_OK 0
  11. #define R_ERR_MEMORY_RUNOUT 1
  12. #define R_ERR_UNSUPPORTED 2
  13. #define R_ERR_OUTPUT_OVERFLOW 3
  14. #endif // __TINY_LZMA_COMPRESS_H__