decompress.h 604 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef __EROFS_DECOMPRESS_H
  3. #define __EROFS_DECOMPRESS_H
  4. #include "internal.h"
  5. struct z_erofs_decompress_req {
  6. char *in, *out;
  7. /*
  8. * initial decompressed bytes that need to be skipped
  9. * when finally copying to output buffer
  10. */
  11. unsigned int decodedskip;
  12. unsigned int inputsize, decodedlength;
  13. /* cut point of interlaced uncompressed data */
  14. unsigned int interlaced_offset;
  15. /* indicate the algorithm will be used for decompression */
  16. unsigned int alg;
  17. bool partial_decoding;
  18. };
  19. int z_erofs_decompress(struct z_erofs_decompress_req *rq);
  20. #endif