offset |
caption |
description |
00 |
Word size(L)
|
The byte count required to store file size etc.
In the future, when file size will be extended, you will use Word Size as other value than 4.(probably 8)
However, you must set Word size as 4 yet.
|
01 |
Word size(H)
|
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 date and time(LL)
|
This is the count of the elapsed seconds
from 00:00:00 on Jan 1, 1970 UTC to the last modified time of file.
When the time zone is not correctly set up,
you can interconvert with an uncertainty of maximum of 24 hours local time and UTC.
Last modified date and time is 16:30:20 on Jul 7, 2002 in the foregoing sample.
|
16 |
Last modified date and time(LH)
|
17 |
Last modified date and time(HL)
|
18 |
Last modified date and time(HH)
|
19 |
Resurved
|
You must set 0x20 which means normal file in MS-DOS attribute.
|
20 |
You must set 0x03 which means header level.
|
21 |
CRC16(L)
|
This is CRC16 of the file before the compression.
CRC16 is 0x0000 in the foregoing sample.
|
22 |
CRC16(H)
|
23 |
OS ID
|
This is a identifier of Operating System which compressed the file.
OS ID is 'J'(0x4A) which means Java in the foregoing sample.
|
24 |
This is the byte count of whole header
(which is sum of the byte count of base header and the total of byte count of each extended headers).
Size of header is 0x0000003A(58) in the foregoing sample.
|
25 |
26 |
27 |
28 |
This is the byte count of following extended header.
Set this field as 0, when there is not following extended header.
Size of next extended header is 0x0007 in the foregoing sample.
|
29 |
30 |
31 |