re-order some parts of the code so that the msg and rect are only allocated once.
[AROS.git] / tools / package / FORMAT
blob103c23a2d1efe8edbd87de7173f939fadadc996e
1 Pseudo-BNF
2 ----------
4 package     = header, file*
6 file        = pathLength, path, dataLength, data
8 header      = 'P', 'K', 'G', version, packageSize
9 version     = UBYTE      # Must be 1
10 packageSize = LONG
12 pathLength  = LONG
13 path        = BYTE[pathLength+1] # trailing '\0'
14 dataLength  = LONG
15 data        = BYTE[dataLength] 
17 Example
18 -------
20 "PKG", 1, 28L, 3L, "foo", 0, 8L, "barbarba"