summaryrefslogtreecommitdiffstats
path: root/BeOS/ar-1.1/docs/notes
blob: 4a90a16b37878e34b0dff24e04889e4353131ed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
MW library layout:

header
	magic word, magic processor flag ('MWOBPPC ') - 2x 4 bytes
	magic flags, version (file format version?) - 2x 4 bytes
	code size - 4 bytes
	data size - 4 bytes
	# of objects - 4 bytes

	header for file 1 - 20 bytes
		- modification time - 4 bytes
		- offset to filename - 4 bytes
		- offset to full path - 4 bytes (NOTE: NOT a full path in reality!)
		- offset to object data - 4 bytes
		- size of object data - 4 bytes

	...

	header for file n - 20 bytes

	file 1 name + NUL - variable
	file 1 name + NUL - variable
	file 2 name + NUL - variable
	file 2 name + NUL - variable
	...
	file n name + NUL - variable
	file n name + NUL - variable

	padding to multiple of 4 bytes - 0 - 3 bytes

file 1 data - variable (padded to 4-byte boundary)
file 2 data - variable (padded to 4-byte boundary)
...
file n data - variable (padded to 4-byte boundary)