lz4.h 717 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2019 Google LLC
  4. */
  5. #ifndef __LZ4_H
  6. #define __LZ4_H
  7. /**
  8. * ulz4fn() - Decompress LZ4 data
  9. *
  10. * @src: Source data to decompress
  11. * @srcn: Length of source data
  12. * @dst: Destination for uncompressed data
  13. * @dstn: Returns length of uncompressed data
  14. * @return 0 if OK, -EPROTONOSUPPORT if the magic number or version number are
  15. * not recognised or independent blocks are used, -EINVAL if the reserved
  16. * fields are non-zero, or input is overrun, -EENOBUFS if the destination
  17. * buffer is overrun, -EEPROTO if the compressed data causes an error in
  18. * the decompression algorithm
  19. */
  20. int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn);
  21. #endif