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

  1. --------A-ZOO-------------------------------
  2.  
  3. The ZOO archive program by Raoul Dhesi is a file compression program now
  4. superceeded  in  both  compression and  speed  by most other compression
  5. programs. The archive header looks like this :
  6.  
  7. OFFSET              Count TYPE   Description
  8. 0000h                  20 char   Archive header text, ^Z terminated, null padded
  9. 0014h                   1 dword  ID=0FDC4A7DCh
  10. 0018h                   1 dword  Offset of first file in archive
  11. 001Ch                   1 dword  Offset of ????
  12. 0020h                   1 byte   Version archive was made by
  13. 0021h                   1 byte   Minimum version needed to extract
  14.  
  15. Each stored file has its own header, which looks like this :
  16. OFFSET              Count TYPE   Description
  17. 0000h                   1 dword  ID=0FDC4A7DCh
  18. 0004h                   1 byte   Type of directory entry
  19. 0005h                   1 byte   Compression method :
  20.                                  0 - stored
  21.                                  1 - Crunched : LZW, 4K buffer,
  22.                                                  var len (9-13 bits)
  23. 0006h                   1 dword  Offset of next directory entry
  24. 000Ah                   1 dword  Offset of next header
  25. 000Dh                   1 word   Original date / time of file
  26. 0012h                   1 word   CRC-16 of file
  27. 0014h                   1 dword  Uncompressed size of file
  28. 0018h                   1 dword  Compressed size of file
  29. 001Ch                   1 byte   Version this file was compressed by
  30. 001Dh                   1 byte   Minimum version needed to extract
  31. 001Eh                   1 byte   Deleted flag
  32.                                  0 - file in archive
  33.                                  1 - file is considered deleted
  34. 001Fh                   1 dword  Offset of comment field, 0 if none
  35. 0023h                   1 word   Length of comment field
  36. 0025h                   ? char   ASCIIZ path / filename
  37.  
  38. EXTENSION:ZOO
  39. OCCURENCES:PC
  40. PROGRAMS:ZOO.EXE
  41. REFERENCE:
  42. VALIDATION:
  43.  
  44.