TinyLzmaDecompress.h 683 B

12345678910111213141516171819202122
  1. // TinyLZMA
  2. // Source from https://github.com/WangXuan95/TinyLzma
  3. #ifndef __TINY_LZMA_DECOMPRESS_H__
  4. #define __TINY_LZMA_DECOMPRESS_H__
  5. #include <stdint.h>
  6. #include <stddef.h>
  7. int tinyLzmaDecompress (const uint8_t *p_src, size_t src_len, uint8_t *p_dst, size_t *p_dst_len);
  8. // return codes of tinyLzmaDecompressor --------------------
  9. #define R_OK 0
  10. #define R_ERR_MEMORY_RUNOUT 1
  11. #define R_ERR_UNSUPPORTED 2
  12. #define R_ERR_OUTPUT_OVERFLOW 3
  13. #define R_ERR_INPUT_OVERFLOW 4
  14. #define R_ERR_DATA 5
  15. #define R_ERR_OUTPUT_LEN_MISMATCH 6
  16. #endif // __TINY_LZMA_DECOMPRESS_H__