LZH Format Intel byte order Information from File Format List 2.0 by Max Maischein. --------!-CONTACT_INFO---------------------- If you notice any mistakes or omissions, please let me know! It is only with YOUR help that the list can continue to grow. Please send all changes to me rather than distributing a modified version of the list. This file has been authored in the style of the INTERxxy.* file list by Ralf Brown, and uses almost the same format. Please read the file FILEFMTS.1ST before asking me any questions. You may find that they have already been addressed. Max Maischein Max Maischein, 2:244/1106.17 Max_Maischein@spam.fido.de corion@informatik.uni-frankfurt.de Corion on #coders@IRC --------!-DISCLAIMER------------------------ DISCLAIMER: THIS MATERIAL IS PROVIDED "AS IS". I verify the information contained in this list to the best of my ability, but I cannot be held responsible for any problems caused by use or misuse of the information, especially for those file formats foreign to the PC, like AMIGA or SUN file formats. If an information it is marked "guesswork" or undocumented, you should check it carefully to make sure your program will not break with an unexpected value (and please let me know whether or not it works the same way). Information marked with "???" is known to be incomplete or guesswork. Some file formats were not released by their creators, others are regarded as proprietary, which means that if your programs deal with them, you might be looking for trouble. I don't care about this. -------------------------------------------- The LHArc/LHA archiver is a multi platform archiver made by Haruyasu Yoshizaki, which has a relatively good compression. It uses more or less the same technology like the ZIP programs by Phil Katz. There was a hack named "ICE", which had only the graphic characters displayed on decompression changed. OFFSET Count TYPE Description 0000h 1 byte Size of archived file header 0001h 1 byte Checksum of remaining bytes 0002h 3 char ID='-lh' ID='-lz' 0005h 1 char Compression methods used (see table 0005) 0006h 1 char ID='-' 0007h 1 dword Compressed size 000Bh 1 dword Uncompressed size 000Fh 1 dword Original file date/time (see table 0009) 0013h 1 word File attribute 0015h 1 byte Filename / path length in bytes ="LEN" 0016h "LEN" char Filename / path 0018h 1 word CRC-16 of original file +"LEN" (Table 0005) LHArc compression types "0" - No compression "1" - LZW, 4K buffer, Huffman for upper 6 bits of position "2" - unknown "3" - unknown "4" - LZW, Arithmetic Encoding "5" - LZW, Arithmetic Encoding "s" - LHa 2.x archive? "\" - LHa 2.x archive? "d" - LHa 2.x archive? EXTENSION:LZH,ICE OCCURENCES:PC PROGRAMS:LHArc.EXE, LHA.EXE