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

  1. --------A-ARJ-------------------------------
  2.  
  3. The ARJ program by Robert K. Jung is a "newcomer" which compares well to
  4. PKZip  and LhArc in both compression  and speed. An ARJ archive contains
  5. two  types of header blocks, one archive  main header at the head of the
  6. archive and local file headers before each archived file.
  7.  
  8. OFFSET              Count TYPE   Description
  9. 0000h                   1 word   ID=0EA60h
  10. 0002h                   1 word   Basic header size (0 if end of archive)
  11. 0004h                   1 byte   Size of header including extra data
  12. 0005h                   1 byte   Archiver version number
  13. 0006h                   1 byte   Minimum version needed to extract
  14. 0007h                   1 byte   Host OS (see table 0002)
  15. 0008h                   1 byte   Internal flags, bitmapped :
  16.                                   0 - no password / password
  17.                                   1 - reserved
  18.                                   2 - file continues on next disk
  19.                                   3 - file start position field is available
  20.                                   4 - path translation ( "\" to "/" )
  21. 0009h                   1 byte   Compression method :
  22.                                   0 - stored
  23.                                   1 - compressed most
  24.                                   2 - compressed
  25.                                   3 - compressed faster
  26.                                   4 - compressed fastest
  27. Methods  1  to  3 use Lempel-Ziv  77  sliding window with static Huffman
  28. encoding,  method  4  uses Lempel-Ziv  77  sliding  window with pointer/
  29. length unary encoding.
  30. 000Ah                   1 byte   File type :
  31.                                   0 - binary
  32.                                   1 - 7-bit text
  33.                                   2 - comment header
  34.                                   3 - directory
  35.                                   4 - volume label
  36. 000Bh                   1 byte   reserved
  37. 000Ch                   1 dword  Date/Time of original file in MS-DOS format
  38. 0010h                   1 dword  Compressed size of file
  39. 0014h                   1 dword  Original size of file
  40. 0018h                   1 dword  Original file's CRC-32
  41. 001Ah                   1 word   Filespec position in filename
  42. 001Ch                   1 word   File attributes
  43. 001Eh                   1 word   Host data (currently not used)
  44. ?                       1 dword  Extended file starting position when used
  45.                                  (see above)
  46.                         ? char   ASCIIZ file name
  47.                         ? char   Comment
  48. ????h                   1 dword  Basic header CRC-32
  49. ????h                   1 word   Size of first extended header (0 if none)
  50.                                  ="SIZ"
  51. ????h+"SIZ"+2           1 dword  Extended header CRC-32
  52. ????h+"SIZ"+6           ? byte   Compressed file
  53.  
  54. (Table 0002)
  55.  
  56. ARJ HOST-OS types
  57.   0 - MS-DOS
  58.   1 - PRIMOS
  59.   2 - UNIX
  60.   3 - AMIGA
  61.   4 - MAC-OS (System xx)
  62.   5 - OS/2
  63.   6 - APPLE GS
  64.   7 - ATARI ST
  65.   8 - NeXT
  66.   9 - VAX VMS
  67.  
  68. EXTENSION:ARJ
  69. OCCURENCES:PC
  70. PROGRAMS:ARJ.EXE
  71.  
  72.