home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / ARCHIVES.SWG / 0008_LZH.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-03  |  2KB  |  44 lines

  1. --------A-LZH-------------------------------
  2.  
  3. The  LHArc/LHA  archiver is a multi  platform  archiver made by Haruyasu
  4. Yoshizaki, which has a relatively good compression. It uses more or less
  5. the same technology like the ZIP programs by Phil Katz. There was a hack
  6. named  "ICE",  which  had  only  the  graphic  characters  displayed  on
  7. decompression changed.
  8.  
  9. OFFSET              Count TYPE   Description
  10.  
  11. 0000h                   1 byte   Size of archived file header
  12. 0001h                   1 byte   Checksum of remaining bytes
  13. 0002h                   3 char   ID='-lh'
  14.                                  ID='-lz'
  15. 0005h                   1 char   Compression methods used (see table 0005)
  16. 0006h                   1 char   ID='-'
  17. 0007h                   1 dword  Compressed size
  18. 000Bh                   1 dword  Uncompressed size
  19. 000Fh                   1 dword  Original file date/time (see table 0009)
  20. 0013h                   1 word   File attribute
  21. 0015h                   1 byte   Filename / path length in bytes
  22.                                  ="LEN"
  23. 0016h               "LEN" char   Filename / path
  24. 0018h                   1 word   CRC-16 of original file
  25. +"LEN"
  26.  
  27. (Table 0005)
  28.  
  29. LHArc compression types
  30.   "0" - No compression
  31.   "1" - LZW, 4K buffer, Huffman for upper 6 bits of position
  32.   "2" - unknown
  33.   "3" - unknown
  34.   "4" - LZW, Arithmetic Encoding
  35.   "5" - LZW, Arithmetic Encoding
  36.   "s" - LHa 2.x archive?
  37.   "\" - LHa 2.x archive?
  38.   "d" - LHa 2.x archive?
  39.  
  40. EXTENSION:LZH,ICE
  41. OCCURENCES:PC
  42. PROGRAMS:LHArc.EXE, LHA.EXE
  43.  
  44.