/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_filepack.htm
Defence Force logotype

Diff of /public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_filepack.htm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1526 by dbug, Sun May 24 19:53:20 2009 UTC revision 1527 by dbug, Sat Sep 7 09:16:40 2019 UTC
# Line 40  It typically perform a 50% compression r Line 40  It typically perform a 50% compression r
40  </pre>  </pre>
41    
42    
43    <p id=chapter>Switches</p>
44    <ul>
45    
46    <li>The -u switch is used to decompress a file: Note that only files packed with a header (-p1 or -p2) can be unpacked (and you need to pass the correct -m0/-m1 values matching the one used when compressing the data)
47    
48    <p>
49    <pre>
50    -p0 => No header
51    -p1 => Save with short header [default]
52    -p2 => Save with long header</pre>
53    See below for the explanation regarding how this switch changes the format.
54    </p>
55    </li>
56    
57    <li>The -p switch defines the packing mode:
58    <p>
59    <pre>
60    -p0 => No header
61    -p1 => Save with short header [default]
62    -p2 => Save with long header</pre>
63    See below for the explanation regarding how this switch changes the format.
64    </p>
65    </li>
66    
67    
68    <li>The -m switch selects the meaning of the bits in the encoding mask
69    <pre>
70    -m0 => 0=copy bytes / 1=new byte [default]
71    -m1 => 0=new byte   / 1=copy bytes</pre>
72    This is just to allow code optimization, some platforms are more comfortable branching on true, some prefer to branch on false. Just make sure the code handles that when depacking.
73    </li>
74    
75    </ul>
76    
77  <p id=chapter>Packed file format</p>  <p id=chapter>Packed file format</p>
78    
79  <p>The format of packed files is actually very simple, and is mostly based on a 8 bytes header  <p>The format of packed files is actually very simple, and is mostly based on a 8 bytes header
# Line 89  To unpack these files you need to use an Line 123  To unpack these files you need to use an
123  <p>Here is the list of all releases with a short description of things that changed:  <p>Here is the list of all releases with a short description of things that changed:
124  </p>  </p>
125    
126  <p id=dateentry>Version 0.004</p>  <p id=dateentry>Version 0.5</p>
127     - Added the -mn and -p2 options
128    
129    
130    <p id=dateentry>Version 0.4</p>
131   - Added p0/p1 mode to pack a file without appending the header.   - Added p0/p1 mode to pack a file without appending the header.
132   Very usefull when you want to spare a maximum of bytes in a minigame compo...   Very usefull when you want to spare a maximum of bytes in a minigame compo...
133    
134  <p id=dateentry>Version 0.001-0.003</p>  <p id=dateentry>Version 0.1-0.3</p>
135   - First released version   - First released version
136    
137    

Legend:
Removed from v.1526  
changed lines
  Added in v.1527

  ViewVC Help
Powered by ViewVC 1.1.26