?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #ifndef MHMT_DEPACK_H
  2. #define MHMT_DEPACK_H
  3.  
  4. #include "mhmt-types.h"
  5. #include "mhmt-lz.h"
  6.  
  7.  
  8. //#define MAX_CODES_SIZE 3860 // max num of codes is 3857, plus stopcode, plus some extra bytes
  9.  
  10.  
  11.  
  12. ULONG depack(void);
  13.  
  14.  
  15. #define DEPACK_GETBYTE_REWIND 0
  16. #define DEPACK_GETBYTE_NEXT   1
  17. // rewind - to the beginning of input stream, byte - next byte
  18. // returns 0xFFFFFFFF if error, otherwise byte (0..255)
  19. ULONG depack_getbyte(ULONG operation);
  20.  
  21. #define DEPACK_GETBITS_FORCE 1
  22. #define DEPACK_GETBITS_NEXT  2
  23. ULONG depack_getbits(ULONG numbits, ULONG operation);
  24.  
  25. ULONG depack_getbits_word(void);
  26.  
  27. #define DEPACK_OUTBYTE_INIT  1
  28. #define DEPACK_OUTBYTE_FLUSH 2
  29. #define DEPACK_OUTBYTE_ADD   3
  30. ULONG depack_outbyte(UBYTE byte, ULONG operation);
  31. ULONG depack_repeat(LONG disp, ULONG length);
  32.  
  33.  
  34. ULONG  checker_megalz(void);
  35. ULONG depacker_megalz(void);
  36. ULONG  checker_hrum  (void);
  37. ULONG depacker_hrum  (void);
  38. ULONG  checker_hrust (void);
  39. ULONG depacker_hrust (void);
  40. ULONG  checker_zx7   (void);
  41. ULONG depacker_zx7   (void);
  42.  
  43.  
  44.  
  45. #endif
  46.  
  47.