| offset |
caption |
description |
| 00 |
This is the byte count of whole header without 2 bytes of the head.
Size of header is 0x1F(31) in the foregoing sample.
(whole header:33 - 2 bytes of a head:2)
|
| 01 |
This is low 1 byte of the total of each bytes of whole header without 2 bytes of the head.
Header checksum is 0xC3 in the foregoing sample.
(Total of each bytes of whole header without 2 bytes of the head is 0x07C3.)
|
| 02 |
Compress method(1)
|
Compress method identifies the compression algorithm of compressed data which is following this header.
The format of compress method is "-???-".
(the 1st byte and the 5th byte must be '-', and the length must be 5bytes)
Compress method is "-lh0-" which means no compression, in the foregoing sample.
|
| 03 |
Compress method(2)
|
| 04 |
Compress method(3)
|
| 05 |
Compress method(4)
|
| 06 |
Compress method(5)
|
| 07 |
Compressed size(LL)
|
This is the byte count of compressed file which is following this header.
Compressed size is 0x00000000 in the foregoing sample.
|
| 08 |
Compressed size(LH)
|
| 09 |
Compressed size(HL)
|
| 10 |
Compressed size(HH)
|
| 11 |
Original size(LL)
|
This is the byte count of the file before the compression.
Original size is 0x00000000 in the foregoing sample.
|
| 12 |
Original size(LH)
|
| 13 |
Original size(HL)
|
| 14 |
Original size(HH)
|
| 15 |
Last modified time(L)
|
This is the last modified time of file with MS-DOS format.
Note that this is a local time.
Last modified time is 16:30:20 in the foregoing sample.
|
| 16 |
Last modified time(H)
|
| 17 |
Last modified date(L)
|
This is the last modified date of file with MS-DOS format.
Note that this is a local time.
Last modified time is Jul 7, 2002 in the foregoing sample.
|
| 18 |
Last modified date(H)
|
| 19 |
File attribute of MS-DOS(L)
|
This is the file attribute with MS-DOS format.
File attribute of MS-DOS is 0x0020 in the foregoing sample. (only archive flag is on.)
|
| 20 |
This is resurved byte of MS-DOS file attribute.
This byte was used as the header level since MS-DOS always set 0 with this byte.
|
| 21 |
Length of Pathname
|
This is the byte count of the following Pathname.
Length of Pathname is 9 in the foregoing sample.
|
| 22 |
Pathname(1)
|
This is the string which contains the filename (and directory name when you need).
You must use '\' as path delimiter when you need.
'\' is path delimiter of MS-DOS, which is platform of original LHarc.
'\' may apper in the 2nd byte of Shift_JIS,
processing of Shift_JIS is indispensable when you need full implementation of reading Pathname.
Pathname is "test\test" in the foregoing sample.
|
| ?? |
...
|
| 21 + len |
Pathname(end)
|
| 22 + len |
CRC16(L)
|
This is CRC16 of the file before the compression.
Note that some old implementation (for example, old version of LArc) makes a header without CRC16.
CRC16 is 0x0000 in the foregoing sample.
|
| 23 + len |
CRC16(H)
|
| 24 + len |
Extended area(1)
|
This is the area for storing another infomation when you need.
No Extended area is in the foregoing sample.
|
| ?? |
...
|
| size - 1 |
Extended area(end)
|