home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1461 / gepackt.exe / LH-HDR.DOK < prev    next >
Encoding:
Text File  |  1989-04-06  |  1.4 KB  |  39 lines

  1.  
  2.                                                                 31 Mar 89
  3. Format of file headers within .LZH archives:
  4.  
  5. Byte 0:  No. bytes in header - 2 (0 = end of file)
  6.      1:  Checksum of remaining bytes (counted by byte 0)
  7.    2-6:  ASCII compression type:
  8.          '-lh0-' = no compression
  9.          '-lh1-' = LHARC compression
  10.                    (presumably other valid types used by
  11.                    the separate LARC program?)
  12.   7-10:  Comressed file size  \ (low byte
  13.  11-14:  Original file length /   first)
  14.  15-16:  File time \   (INT 21H,
  15.  17-18:  File date / function 57H)
  16.  19-20:  File attributes (INT 21H, function 43H)
  17.     21:  No. bytes in path/file name (n)
  18.  22...:  Path/file name (n bytes)
  19.   22+n:  CRC-16 (2 bytes, optional; requires byte 0 - byte 21 = 22)
  20.   22+n = Header length, if no CRC (generated by ???)
  21.   24+n = Header length, if CRC
  22.  
  23.  
  24. Notes:
  25.  
  26. (1)  Above inferred by manual inspection and confirmed by disassembly
  27.      of LHARC10E self-extraction code, except for bytes 19-20, which are
  28.      not used by self-extraction code.
  29.  
  30. (2)  Maximum path/file name length = 233 bytes (235 bytes, if no CRC),
  31.      given max. byte 0 count = 255
  32.  
  33. (3)  CRC-16 polynomial identical to that used by .ARC archives.
  34.  
  35.                                                 - Robert A. Freed
  36.                                                   Newton Centre, MA
  37.  
  38.  
  39.