zlib.monkey2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Namespace zlib
  2. #Import "zlib-1.2.11/adler32.c"
  3. #Import "zlib-1.2.11/compress.c"
  4. #Import "zlib-1.2.11/crc32.c"
  5. #Import "zlib-1.2.11/deflate.c"
  6. '#Import "zlib-1.2.11/gzclose.c"
  7. '#Import "zlib-1.2.11/gzlib.c"
  8. '#Import "zlib-1.2.11/gzread.c"
  9. '#Import "zlib-1.2.11/gzwrite.c"
  10. #Import "zlib-1.2.11/infback.c"
  11. #Import "zlib-1.2.11/inffast.c"
  12. #Import "zlib-1.2.11/inflate.c"
  13. #Import "zlib-1.2.11/inftrees.c"
  14. #Import "zlib-1.2.11/trees.c"
  15. #Import "zlib-1.2.11/uncompr.c"
  16. #Import "zlib-1.2.11/zutil.c"
  17. #Import "zlib-1.2.11/*.h"
  18. #Import "<zlib.h>"
  19. Extern
  20. 'PITA zlib ulong define
  21. Struct z_uLong="uLong"
  22. End
  23. Const Z_OK:Int
  24. Const Z_STREAM_END:Int
  25. Const Z_NEED_DICT:Int
  26. Const Z_ERRNO:Int
  27. Const Z_STREAM_ERROR:Int
  28. Const Z_DATA_ERROR:Int
  29. Const Z_MEM_ERROR:Int
  30. Const Z_BUF_ERROR:Int
  31. Const Z_VERSION_ERROR:Int
  32. Function compress:Int( dest:UByte Ptr,destLen:z_uLong Ptr,source:UByte Ptr,sourceLen:UInt )
  33. Function compress2:Int( dest:UByte Ptr,destLen:z_uLong Ptr,source:UByte Ptr,sourceLen:UInt,level:Int )
  34. Function uncompress:Int( dest:UByte Ptr,destLen:z_uLong Ptr,source:UByte Ptr,sourceLen:UInt )
  35. Function compressBound:UInt( sourceLen:UInt )