aplib.h
上传用户:sdguojin
上传日期:2022-07-31
资源大小:1726k
文件大小:2k
源码类别:

系统编程

开发平台:

Visual C++

  1. /*
  2.  * aPLib compression library  -  the smaller the better :)
  3.  *
  4.  * MS COFF format header file
  5.  *
  6.  * Copyright (c) 1998-2008 by Joergen Ibsen / Jibz
  7.  * All Rights Reserved
  8.  *
  9.  * http://www.ibsensoftware.com/
  10.  */
  11. #ifndef APLIB_H_INCLUDED
  12. #define APLIB_H_INCLUDED
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifndef APLIB_ERROR
  17. # define APLIB_ERROR (-1)
  18. #endif
  19. unsigned int __cdecl aP_pack(const void *source,
  20.                              void *destination,
  21.                              unsigned int length,
  22.                              void *workmem,
  23.                              int (__cdecl *callback)(unsigned int, unsigned int, unsigned int, void *),
  24.                              void *cbparam);
  25. unsigned int __cdecl aP_workmem_size(unsigned int inputsize);
  26. unsigned int __cdecl aP_max_packed_size(unsigned int inputsize);
  27. unsigned int __cdecl aP_depack_asm(const void *source, void *destination);
  28. unsigned int __cdecl aP_depack_asm_fast(const void *source, void *destination);
  29. unsigned int __cdecl aP_depack_asm_safe(const void *source,
  30.                                         unsigned int srclen,
  31.                                         void *destination,
  32.                                         unsigned int dstlen);
  33. unsigned int __cdecl aP_crc32(const void *source, unsigned int length);
  34. unsigned int __cdecl aPsafe_pack(const void *source,
  35.                                  void *destination,
  36.                                  unsigned int length,
  37.                                  void *workmem,
  38.                                  int (__cdecl *callback)(unsigned int, unsigned int, unsigned int, void *),
  39.                                  void *cbparam);
  40. unsigned int __cdecl aPsafe_check(const void *source);
  41. unsigned int __cdecl aPsafe_get_orig_size(const void *source);
  42. unsigned int __cdecl aPsafe_depack(const void *source,
  43.                                    unsigned int srclen,
  44.                                    void *destination,
  45.                                    unsigned int dstlen);
  46. #ifdef __cplusplus
  47. } /* extern "C" */
  48. #endif
  49. #endif /* APLIB_H_INCLUDED */