<ahref="byte__manager_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="byte__manager_8h_html_a72b441947e1fab5e8dd83fdc985bf29c"><divclass="ttname"><ahref="byte__manager_8h.html#a72b441947e1fab5e8dd83fdc985bf29c">fetch_4bytebigendian</a></div><divclass="ttdeci">Byte4_t fetch_4bytebigendian(int fd, OPJ_OFF_T offset)</div><divclass="ttdoc">fetch a 4-byte big endian Byte codes in file stream </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:109</div></div>
<divclass="ttc"id="byte__manager_8h_html_a1f29d888bc2d2a63e5ca8a2b71cfafea"><divclass="ttname"><ahref="byte__manager_8h.html#a1f29d888bc2d2a63e5ca8a2b71cfafea">big4</a></div><divclass="ttdeci">Byte4_t big4(Byte_t *buf)</div><divclass="ttdoc">convert 4-byte big endian Byte codes to number </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:147</div></div>
<divclass="ttc"id="byte__manager_8h_html_a48c7dad6f593aa718712b9451317fae3"><divclass="ttname"><ahref="byte__manager_8h.html#a48c7dad6f593aa718712b9451317fae3">modify_4Bytecode</a></div><divclass="ttdeci">void modify_4Bytecode(Byte4_t code, Byte_t *stream)</div><divclass="ttdoc">modify 4Byte code in a codestream </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:159</div></div>
<divclass="ttc"id="byte__manager_8h_html_a0c20ded21352121723f9df94c7568356"><divclass="ttname"><ahref="byte__manager_8h.html#a0c20ded21352121723f9df94c7568356">big2</a></div><divclass="ttdeci">Byte2_t big2(Byte_t *buf)</div><divclass="ttdoc">convert 2-byte big endian Byte codes to number </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:142</div></div>
<divclass="ttc"id="byte__manager_8h_html_a80c5006e047b8a2a5bbb48bcbc9bbd7c"><divclass="ttname"><ahref="byte__manager_8h.html#a80c5006e047b8a2a5bbb48bcbc9bbd7c">fetch_1byte</a></div><divclass="ttdeci">Byte_t fetch_1byte(int fd, OPJ_OFF_T offset)</div><divclass="ttdoc">fetch a 1-byte Byte codes in file stream </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:75</div></div>
<divclass="ttc"id="byte__manager_8h_html_a06c0559c3af79c5facbd4f50f1637782"><divclass="ttname"><ahref="byte__manager_8h.html#a06c0559c3af79c5facbd4f50f1637782">big8</a></div><divclass="ttdeci">Byte8_t big8(Byte_t *buf)</div><divclass="ttdoc">convert 8-byte big endian Byte codes to number </div><divclass="ttdef"><b>Definition:</b> byte_manager.c:153</div></div>