<ahref="cio_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="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * The copyright in this software is being made available under the 2-clauses</span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * BSD License, included below. This software may be subject to other third</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * party and contributor rights, including patent rights, and no such rights</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * are granted under this license.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00036"></a><spanclass="lineno"> 36</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="line"><aname="l00218"></a><spanclass="lineno"> 218</span> <spanclass="comment"> * Write some bytes to the given data buffer, this function is used in Big Endian cpus.</span></div>
<divclass="line"><aname="l00219"></a><spanclass="lineno"> 219</span> <spanclass="comment"> * @param p_buffer pointer the data buffer to write data to.</span></div>
<divclass="line"><aname="l00220"></a><spanclass="lineno"> 220</span> <spanclass="comment"> * @param p_value the value to write</span></div>
<divclass="line"><aname="l00260"></a><spanclass="lineno"> 260</span> <spanclass="comment"> * Write some bytes to the given data buffer, this function is used in Big Endian cpus.</span></div>
<divclass="line"><aname="l00261"></a><spanclass="lineno"> 261</span> <spanclass="comment"> * @param p_buffer pointer the data buffer to write data to.</span></div>
<divclass="line"><aname="l00262"></a><spanclass="lineno"> 262</span> <spanclass="comment"> * @param p_value the value to write</span></div>
<divclass="ttc"id="acio_8c_html_a46b77ecba8a4a0fa492b3451977d5f34"><divclass="ttname"><ahref="cio_8c.html#a46b77ecba8a4a0fa492b3451977d5f34">opj_stream_write_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_write_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:538</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a2ca719761a9cd88dc350486e38b41790"><divclass="ttname"><ahref="structopj__stream__private.html#a2ca719761a9cd88dc350486e38b41790">opj_stream_private::m_skip_fn</a></div><divclass="ttdeci">opj_stream_skip_fn m_skip_fn</div><divclass="ttdoc">Pointer to actual skip function (NULL at the initialization of the cio.</div><divclass="ttdef"><b>Definition:</b> cio.h:113</div></div>
<divclass="ttc"id="acio_8c_html_ae94657bc4ae96f252467a685168b94e1"><divclass="ttname"><ahref="cio_8c.html#ae94657bc4ae96f252467a685168b94e1">opj_stream_write_data</a></div><divclass="ttdeci">OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t *p_stream, const OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Writes some bytes to the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:385</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a3fe08bb7876e393dd04332d049a4d53e"><divclass="ttname"><ahref="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc</a></div><divclass="ttdeci">void * opj_calloc(size_t num, size_t size)</div><divclass="ttdoc">Allocate a memory block with elements initialized to 0.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:198</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a326f2fe5dc1fccce2788bf09ddf4931c"><divclass="ttname"><ahref="structopj__stream__private.html#a326f2fe5dc1fccce2788bf09ddf4931c">opj_stream_private::m_user_data</a></div><divclass="ttdeci">void * m_user_data</div><divclass="ttdoc">User data, be it files, ...</div><divclass="ttdef"><b>Definition:</b> cio.h:85</div></div>
<divclass="ttc"id="acio_8h_html_a28ef412ebe86af560a05f44816b8c601"><divclass="ttname"><ahref="cio_8h.html#a28ef412ebe86af560a05f44816b8c601">opj_write_bytes_LE</a></div><divclass="ttdeci">void opj_write_bytes_LE(OPJ_BYTE *p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:58</div></div>
<divclass="ttc"id="acio_8c_html_ae456419611db729983d8ca337e3f3293"><divclass="ttname"><ahref="cio_8c.html#ae456419611db729983d8ca337e3f3293">opj_stream_has_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_has_seek(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Tells if the given stream is seekable.</div><divclass="ttdef"><b>Definition:</b> cio.c:648</div></div>
<divclass="ttc"id="acio_8h_html_a5c59a39f3664f9deb654c269153c600a"><divclass="ttname"><ahref="cio_8h.html#a5c59a39f3664f9deb654c269153c600a">opj_stream_tell</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_tell(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Tells the byte offset on the stream (similar to ftell).</div><divclass="ttdef"><b>Definition:</b> cio.c:579</div></div>
<divclass="ttc"id="acio_8h_html_a6102b5a73d4a0235e9cfa65d92a623dc"><divclass="ttname"><ahref="cio_8h.html#a6102b5a73d4a0235e9cfa65d92a623dc">opj_stream_read_data</a></div><divclass="ttdeci">OPJ_SIZE_T opj_stream_read_data(opj_stream_private_t *p_stream, OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Reads some bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:281</div></div>
<divclass="ttc"id="acio_8c_html_a9fb51f39980fb6bc1e15ef48a2fd1970"><divclass="ttname"><ahref="cio_8c.html#a9fb51f39980fb6bc1e15ef48a2fd1970">opj_stream_create</a></div><divclass="ttdeci">opj_stream_t *OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size, OPJ_BOOL l_is_input)</div><divclass="ttdoc">Creates an abstract stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:158</div></div>
<divclass="ttc"id="aevent_8c_html_a80a24e8c6d24861cd2403e48a7c2591e"><divclass="ttname"><ahref="event_8c.html#a80a24e8c6d24861cd2403e48a7c2591e">opj_event_msg</a></div><divclass="ttdeci">OPJ_BOOL opj_event_msg(opj_event_mgr_t *p_event_mgr, OPJ_INT32 event_type, const char *fmt,...)</div><divclass="ttdoc">Write formatted data to a string and send the string to a user callback.</div><divclass="ttdef"><b>Definition:</b> event.c:91</div></div>
<divclass="ttc"id="acio_8c_html_aec7225a845169469fd1aa8db2a3fac9e"><divclass="ttname"><ahref="cio_8c.html#aec7225a845169469fd1aa8db2a3fac9e">opj_stream_get_number_byte_left</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_get_number_byte_left(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Get the number of bytes left before the end of the stream (similar to cio_numbytesleft).</div><divclass="ttdef"><b>Definition:</b> cio.c:584</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a5c0c669ab30776a58afc458b7f33a75b"><divclass="ttname"><ahref="structopj__stream__private.html#a5c0c669ab30776a58afc458b7f33a75b">opj_stream_private::m_byte_offset</a></div><divclass="ttdeci">OPJ_OFF_T m_byte_offset</div><divclass="ttdoc">The number of bytes read/written from the beginning of the stream.</div><divclass="ttdef"><b>Definition:</b> cio.h:151</div></div>
<divclass="ttc"id="acio_8h_html_a8f590493a14f4e33a1e2bbcf8eaa889d"><divclass="ttname"><ahref="cio_8h.html#a8f590493a14f4e33a1e2bbcf8eaa889d">opj_stream_write_data</a></div><divclass="ttdeci">OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t *p_stream, const OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Writes some bytes to the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:385</div></div>
<divclass="ttc"id="acio_8c_html_ac82f28130f72561ebd1a18b6bc84edb8"><divclass="ttname"><ahref="cio_8c.html#ac82f28130f72561ebd1a18b6bc84edb8">opj_stream_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:593</div></div>
<divclass="ttc"id="acio_8c_html_a9061d0624a17af80b74e1a114b0c7f06"><divclass="ttname"><ahref="cio_8c.html#a9061d0624a17af80b74e1a114b0c7f06">opj_stream_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Seeks a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:641</div></div>
<divclass="ttc"id="acio_8c_html_a5c59a39f3664f9deb654c269153c600a"><divclass="ttname"><ahref="cio_8c.html#a5c59a39f3664f9deb654c269153c600a">opj_stream_tell</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_tell(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Tells the byte offset on the stream (similar to ftell).</div><divclass="ttdef"><b>Definition:</b> cio.c:579</div></div>
<divclass="ttc"id="acio_8h_html_af4f59dfe6fc6cb0d93ccf308e81727d3"><divclass="ttname"><ahref="cio_8h.html#af4f59dfe6fc6cb0d93ccf308e81727d3">opj_read_double_BE</a></div><divclass="ttdeci">void opj_read_double_BE(const OPJ_BYTE *p_buffer, OPJ_FLOAT64 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:112</div></div>
<divclass="ttc"id="acio_8c_html_aa94d0663a3de41683f3635114eb42eed"><divclass="ttname"><ahref="cio_8c.html#aa94d0663a3de41683f3635114eb42eed">opj_write_bytes_BE</a></div><divclass="ttdeci">void opj_write_bytes_BE(OPJ_BYTE *p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:47</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a53cb7b3992a382231554bdc73cb0c7bd"><divclass="ttname"><ahref="structopj__stream__private.html#a53cb7b3992a382231554bdc73cb0c7bd">opj_stream_private::m_user_data_length</a></div><divclass="ttdeci">OPJ_UINT64 m_user_data_length</div><divclass="ttdoc">User data length.</div><divclass="ttdef"><b>Definition:</b> cio.h:97</div></div>
<divclass="ttc"id="astructopj__stream__private_html_aca072a59b683dc106263ba04d3c28577"><divclass="ttname"><ahref="structopj__stream__private.html#aca072a59b683dc106263ba04d3c28577">opj_stream_private::m_stored_data</a></div><divclass="ttdeci">OPJ_BYTE * m_stored_data</div><divclass="ttdoc">Actual data stored into the stream if read from.</div><divclass="ttdef"><b>Definition:</b> cio.h:124</div></div>
<divclass="ttc"id="acio_8c_html_adae00135fe98bea16876125f0898759a"><divclass="ttname"><ahref="cio_8c.html#adae00135fe98bea16876125f0898759a">opj_read_double_LE</a></div><divclass="ttdeci">void opj_read_double_LE(const OPJ_BYTE *p_buffer, OPJ_FLOAT64 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:118</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a954a54c078a817c3eeffd66b45419cfc"><divclass="ttname"><ahref="structopj__stream__private.html#a954a54c078a817c3eeffd66b45419cfc">opj_stream_private::m_current_data</a></div><divclass="ttdeci">OPJ_BYTE * m_current_data</div><divclass="ttdoc">Pointer to the current read data.</div><divclass="ttdef"><b>Definition:</b> cio.h:129</div></div>
<divclass="ttc"id="acio_8h_html_aa94d0663a3de41683f3635114eb42eed"><divclass="ttname"><ahref="cio_8h.html#aa94d0663a3de41683f3635114eb42eed">opj_write_bytes_BE</a></div><divclass="ttdeci">void opj_write_bytes_BE(OPJ_BYTE *p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:47</div></div>
<divclass="ttc"id="acio_8c_html_ad3a6d67f83a37ac57ace0580d05181e2"><divclass="ttname"><ahref="cio_8c.html#ad3a6d67f83a37ac57ace0580d05181e2">opj_stream_set_user_data_length</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_user_data_length(opj_stream_t *p_stream, OPJ_UINT64 data_length)</div><divclass="ttdoc">Sets the length of the user data for the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:271</div></div>
<divclass="ttc"id="acio_8h_html_af273fa2d61cb73738877a811e689dc88"><divclass="ttname"><ahref="cio_8h.html#af273fa2d61cb73738877a811e689dc88">opj_read_bytes_LE</a></div><divclass="ttdeci">void opj_read_bytes_LE(const OPJ_BYTE *p_buffer, OPJ_UINT32 *p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:82</div></div>
<divclass="ttc"id="acio_8c_html_ad58113d5b82692e59b0573e595c769dc"><divclass="ttname"><ahref="cio_8c.html#ad58113d5b82692e59b0573e595c769dc">opj_stream_flush</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_flush(opj_stream_private_t *p_stream, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Writes the content of the stream buffer to the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:433</div></div>
<divclass="ttc"id="astructopj__stream__private_html_acce2d2187feff70fa3057b0439591f76"><divclass="ttname"><ahref="structopj__stream__private.html#acce2d2187feff70fa3057b0439591f76">opj_stream_private::m_read_fn</a></div><divclass="ttdeci">opj_stream_read_fn m_read_fn</div><divclass="ttdoc">Pointer to actual read function (NULL at the initialization of the cio.</div><divclass="ttdef"><b>Definition:</b> cio.h:102</div></div>
<divclass="ttc"id="acio_8c_html_a133b4f1bfcec7c5b1dfb20c12bd68795"><divclass="ttname"><ahref="cio_8c.html#a133b4f1bfcec7c5b1dfb20c12bd68795">opj_stream_write_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_write_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:620</div></div>
<divclass="ttc"id="acio_8h_html_a092c8153f29a4137728c6d79165c7e51"><divclass="ttname"><ahref="cio_8h.html#a092c8153f29a4137728c6d79165c7e51">opj_stream_read_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_read_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:463</div></div>
<divclass="ttc"id="acio_8h_html_adae00135fe98bea16876125f0898759a"><divclass="ttname"><ahref="cio_8h.html#adae00135fe98bea16876125f0898759a">opj_read_double_LE</a></div><divclass="ttdeci">void opj_read_double_LE(const OPJ_BYTE *p_buffer, OPJ_FLOAT64 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:118</div></div>
<divclass="ttc"id="astructopj__stream__private_html_adab26f9f0a32253aefdce763331c641a"><divclass="ttname"><ahref="structopj__stream__private.html#adab26f9f0a32253aefdce763331c641a">opj_stream_private::m_seek_fn</a></div><divclass="ttdeci">opj_stream_seek_fn m_seek_fn</div><divclass="ttdoc">Pointer to actual seek function (if available).</div><divclass="ttdef"><b>Definition:</b> cio.h:118</div></div>
<divclass="ttc"id="acio_8h_html_a01c575d71f35eb2eb2d0494567a11857"><divclass="ttname"><ahref="cio_8h.html#a01c575d71f35eb2eb2d0494567a11857">opj_read_float_LE</a></div><divclass="ttdeci">void opj_read_float_LE(const OPJ_BYTE *p_buffer, OPJ_FLOAT32 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:149</div></div>
<divclass="ttc"id="acio_8h_html_ae3c5b5fac8489e8fb4d1caecc98a8788"><divclass="ttname"><ahref="cio_8h.html#ae3c5b5fac8489e8fb4d1caecc98a8788">opj_read_float_BE</a></div><divclass="ttdeci">void opj_read_float_BE(const OPJ_BYTE *p_buffer, OPJ_FLOAT32 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:143</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a49c70931cbed786f6eef5f095bcb2917"><divclass="ttname"><ahref="opj__malloc_8c.html#a49c70931cbed786f6eef5f095bcb2917">opj_malloc</a></div><divclass="ttdeci">void * opj_malloc(size_t size)</div><divclass="ttdoc">Allocate an uninitialized memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:191</div></div>
<divclass="ttc"id="acio_8c_html_a40dc781eda7785ee2e585809845e4cae"><divclass="ttname"><ahref="cio_8c.html#a40dc781eda7785ee2e585809845e4cae">opj_stream_read_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_read_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:600</div></div>
<divclass="ttc"id="acio_8h_html_a9f901a48ea910d97ff038f87d9256037"><divclass="ttname"><ahref="cio_8h.html#a9f901a48ea910d97ff038f87d9256037">opj_read_bytes_BE</a></div><divclass="ttdeci">void opj_read_bytes_BE(const OPJ_BYTE *p_buffer, OPJ_UINT32 *p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:71</div></div>
<divclass="ttc"id="acio_8c_html_af4f59dfe6fc6cb0d93ccf308e81727d3"><divclass="ttname"><ahref="cio_8c.html#af4f59dfe6fc6cb0d93ccf308e81727d3">opj_read_double_BE</a></div><divclass="ttdeci">void opj_read_double_BE(const OPJ_BYTE *p_buffer, OPJ_FLOAT64 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:112</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a9d7d909f8dc1a2c23313c48645341e81"><divclass="ttname"><ahref="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free</a></div><divclass="ttdeci">void opj_free(void *ptr)</div><divclass="ttdoc">Deallocates or frees a memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:246</div></div>
<divclass="ttc"id="acio_8c_html_ae3c5b5fac8489e8fb4d1caecc98a8788"><divclass="ttname"><ahref="cio_8c.html#ae3c5b5fac8489e8fb4d1caecc98a8788">opj_read_float_BE</a></div><divclass="ttdeci">void opj_read_float_BE(const OPJ_BYTE *p_buffer, OPJ_FLOAT32 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:143</div></div>
<divclass="ttc"id="acio_8h_html_a9e71a30be5af724e31c50066b7ff1128"><divclass="ttname"><ahref="cio_8h.html#a9e71a30be5af724e31c50066b7ff1128">opj_stream_write_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_write_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:538</div></div>
<divclass="ttc"id="acio_8h_html_aa87066c3ad9c71a3b2e7725d111188b9"><divclass="ttname"><ahref="cio_8h.html#aa87066c3ad9c71a3b2e7725d111188b9">opj_stream_write_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_write_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:620</div></div>
<divclass="ttc"id="acio_8h_html_a9061d0624a17af80b74e1a114b0c7f06"><divclass="ttname"><ahref="cio_8h.html#a9061d0624a17af80b74e1a114b0c7f06">opj_stream_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Seeks a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:641</div></div>
<divclass="ttc"id="acio_8c_html_a9f901a48ea910d97ff038f87d9256037"><divclass="ttname"><ahref="cio_8c.html#a9f901a48ea910d97ff038f87d9256037">opj_read_bytes_BE</a></div><divclass="ttdeci">void opj_read_bytes_BE(const OPJ_BYTE *p_buffer, OPJ_UINT32 *p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Big Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:71</div></div>
<divclass="ttc"id="acio_8h_html_ac1a8582ea72e8bfdf744b5af0b73863d"><divclass="ttname"><ahref="cio_8h.html#ac1a8582ea72e8bfdf744b5af0b73863d">opj_write_float_LE</a></div><divclass="ttdeci">void opj_write_float_LE(OPJ_BYTE *p_buffer, OPJ_FLOAT32 p_value)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:133</div></div>
<divclass="ttc"id="astructopj__stream__private_html_ac2b84e72997fde0bf510faf6c8df5798"><divclass="ttname"><ahref="structopj__stream__private.html#ac2b84e72997fde0bf510faf6c8df5798">opj_stream_private::m_status</a></div><divclass="ttdeci">OPJ_UINT32 m_status</div><divclass="ttdoc">Flags to tell the status of the stream.</div><divclass="ttdef"><b>Definition:</b> cio.h:162</div></div>
<divclass="ttc"id="acio_8c_html_ae0b2d3c47f4dc68c3f52def9eb5fb752"><divclass="ttname"><ahref="cio_8c.html#ae0b2d3c47f4dc68c3f52def9eb5fb752">opj_stream_set_write_function</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_write_function(opj_stream_t *p_stream, opj_stream_write_fn p_function)</div><divclass="ttdoc">Sets the given function to be used as a write function.</div><divclass="ttdef"><b>Definition:</b> cio.c:236</div></div>
<divclass="ttc"id="acio_8c_html_ab53adb04ecf0efbda2b1e066b5bad040"><divclass="ttname"><ahref="cio_8c.html#ab53adb04ecf0efbda2b1e066b5bad040">opj_stream_set_read_function</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_read_function(opj_stream_t *p_stream, opj_stream_read_fn p_function)</div><divclass="ttdoc">Sets the given function to be used as a read function.</div><divclass="ttdef"><b>Definition:</b> cio.c:213</div></div>
<divclass="ttc"id="acio_8c_html_a01c575d71f35eb2eb2d0494567a11857"><divclass="ttname"><ahref="cio_8c.html#a01c575d71f35eb2eb2d0494567a11857">opj_read_float_LE</a></div><divclass="ttdeci">void opj_read_float_LE(const OPJ_BYTE *p_buffer, OPJ_FLOAT32 *p_value)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:149</div></div>
<divclass="ttc"id="acio_8c_html_a28ef412ebe86af560a05f44816b8c601"><divclass="ttname"><ahref="cio_8c.html#a28ef412ebe86af560a05f44816b8c601">opj_write_bytes_LE</a></div><divclass="ttdeci">void opj_write_bytes_LE(OPJ_BYTE *p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:58</div></div>
<divclass="ttc"id="acio_8h_html_aec7225a845169469fd1aa8db2a3fac9e"><divclass="ttname"><ahref="cio_8h.html#aec7225a845169469fd1aa8db2a3fac9e">opj_stream_get_number_byte_left</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_get_number_byte_left(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Get the number of bytes left before the end of the stream (similar to cio_numbytesleft).</div><divclass="ttdef"><b>Definition:</b> cio.c:584</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a8bbf688a608e52a52d1cf89c7103ac5b"><divclass="ttname"><ahref="structopj__stream__private.html#a8bbf688a608e52a52d1cf89c7103ac5b">opj_stream_private::m_bytes_in_buffer</a></div><divclass="ttdeci">OPJ_SIZE_T m_bytes_in_buffer</div><divclass="ttdoc">number of bytes containing in the buffer.</div><divclass="ttdef"><b>Definition:</b> cio.h:146</div></div>
<divclass="ttc"id="acio_8c_html_ac0686c0048dfa2d2fcffaf649891ea58"><divclass="ttname"><ahref="cio_8c.html#ac0686c0048dfa2d2fcffaf649891ea58">opj_stream_destroy</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_destroy(opj_stream_t *p_stream)</div><divclass="ttdoc">Destroys a stream created by opj_create_stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:199</div></div>
<divclass="ttc"id="acio_8c_html_ad2083292c9469ca4a135521524784f89"><divclass="ttname"><ahref="cio_8c.html#ad2083292c9469ca4a135521524784f89">opj_write_double_LE</a></div><divclass="ttdeci">void opj_write_double_LE(OPJ_BYTE *p_buffer, OPJ_FLOAT64 p_value)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:102</div></div>
<divclass="ttc"id="acio_8c_html_ac1a8582ea72e8bfdf744b5af0b73863d"><divclass="ttname"><ahref="cio_8c.html#ac1a8582ea72e8bfdf744b5af0b73863d">opj_write_float_LE</a></div><divclass="ttdeci">void opj_write_float_LE(OPJ_BYTE *p_buffer, OPJ_FLOAT32 p_value)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:133</div></div>
<divclass="ttc"id="acio_8c_html_af273fa2d61cb73738877a811e689dc88"><divclass="ttname"><ahref="cio_8c.html#af273fa2d61cb73738877a811e689dc88">opj_read_bytes_LE</a></div><divclass="ttdeci">void opj_read_bytes_LE(const OPJ_BYTE *p_buffer, OPJ_UINT32 *p_value, OPJ_UINT32 p_nb_bytes)</div><divclass="ttdoc">Reads some bytes from the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:82</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a262bea0d39f7c5a0bd5ef07434e38723"><divclass="ttname"><ahref="structopj__stream__private.html#a262bea0d39f7c5a0bd5ef07434e38723">opj_stream_private::m_free_user_data_fn</a></div><divclass="ttdeci">opj_stream_free_user_data_fn m_free_user_data_fn</div><divclass="ttdoc">Pointer to function to free m_user_data (NULL at initialization) when destroying the stream.</div><divclass="ttdef"><b>Definition:</b> cio.h:92</div></div>
<divclass="ttc"id="acio_8h_html_ae456419611db729983d8ca337e3f3293"><divclass="ttname"><ahref="cio_8h.html#ae456419611db729983d8ca337e3f3293">opj_stream_has_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_has_seek(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Tells if the given stream is seekable.</div><divclass="ttdef"><b>Definition:</b> cio.c:648</div></div>
<divclass="ttc"id="acio_8c_html_aa693f609fb645fa540e37a6b2e7f597c"><divclass="ttname"><ahref="cio_8c.html#aa693f609fb645fa540e37a6b2e7f597c">opj_stream_set_seek_function</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_seek_function(opj_stream_t *p_stream, opj_stream_seek_fn p_function)</div><divclass="ttdoc">Sets the given function to be used as a seek function, the stream is then seekable,...</div><divclass="ttdef"><b>Definition:</b> cio.c:225</div></div>
<divclass="ttc"id="acio_8c_html_ae704215616c7b64bd9bc8c055a1c8880"><divclass="ttname"><ahref="cio_8c.html#ae704215616c7b64bd9bc8c055a1c8880">opj_stream_read_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_read_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:463</div></div>
<divclass="ttc"id="acio_8h_html_a3cb2e53726d5dde5a5f97f64a9e5f42d"><divclass="ttname"><ahref="cio_8h.html#a3cb2e53726d5dde5a5f97f64a9e5f42d">opj_stream_flush</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_flush(opj_stream_private_t *p_stream, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Writes the content of the stream buffer to the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:433</div></div>
<divclass="ttc"id="acio_8h_html_a8a8ab9c9e1ccdc20a6dd2a2925a3f8c0"><divclass="ttname"><ahref="cio_8h.html#a8a8ab9c9e1ccdc20a6dd2a2925a3f8c0">opj_stream_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:593</div></div>
<divclass="ttc"id="acio_8c_html_a8c6a736dad88118ccefb3090a0a8bb40"><divclass="ttname"><ahref="cio_8c.html#a8c6a736dad88118ccefb3090a0a8bb40">opj_stream_set_user_data</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_user_data(opj_stream_t *p_stream, void *p_data, opj_stream_free_user_data_fn p_function)</div><divclass="ttdoc">Sets the given data to be used as a user data for the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:260</div></div>
<divclass="ttc"id="acio_8h_html_ad2083292c9469ca4a135521524784f89"><divclass="ttname"><ahref="cio_8h.html#ad2083292c9469ca4a135521524784f89">opj_write_double_LE</a></div><divclass="ttdeci">void opj_write_double_LE(OPJ_BYTE *p_buffer, OPJ_FLOAT64 p_value)</div><divclass="ttdoc">Write some bytes to the given data buffer, this function is used in Little Endian cpus.</div><divclass="ttdef"><b>Definition:</b> cio.c:102</div></div>
<divclass="ttc"id="astructopj__stream__private_html_a83e54b51fe859e0aa93ebf292edf054c"><divclass="ttname"><ahref="structopj__stream__private.html#a83e54b51fe859e0aa93ebf292edf054c">opj_stream_private::m_buffer_size</a></div><divclass="ttdeci">OPJ_SIZE_T m_buffer_size</div><divclass="ttdoc">The size of the buffer.</div><divclass="ttdef"><b>Definition:</b> cio.h:156</div></div>
<divclass="ttc"id="acio_8c_html_a5ddba22278152cac64cfbdcedca6b31f"><divclass="ttname"><ahref="cio_8c.html#a5ddba22278152cac64cfbdcedca6b31f">opj_stream_read_data</a></div><divclass="ttdeci">OPJ_SIZE_T opj_stream_read_data(opj_stream_private_t *p_stream, OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Reads some bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:281</div></div>
<divclass="ttc"id="acio_8h_html_a7dc74eec9e8e6227d485ef36396c57d8"><divclass="ttname"><ahref="cio_8h.html#a7dc74eec9e8e6227d485ef36396c57d8">opj_stream_read_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_read_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:600</div></div>
<divclass="ttc"id="astructopj__stream__private_html_aacd57b4e429ddf5ca3a4913a2f963d6a"><divclass="ttname"><ahref="structopj__stream__private.html#aacd57b4e429ddf5ca3a4913a2f963d6a">opj_stream_private::m_write_fn</a></div><divclass="ttdeci">opj_stream_write_fn m_write_fn</div><divclass="ttdoc">Pointer to actual write function (NULL at the initialization of the cio.</div><divclass="ttdef"><b>Definition:</b> cio.h:107</div></div>
<divclass="ttc"id="acio_8c_html_a903d03c70a9a5aa8deb0adc637520d5c"><divclass="ttname"><ahref="cio_8c.html#a903d03c70a9a5aa8deb0adc637520d5c">opj_stream_default_create</a></div><divclass="ttdeci">opj_stream_t *OPJ_CALLCONV opj_stream_default_create(OPJ_BOOL l_is_input)</div><divclass="ttdoc">Creates an abstract stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:194</div></div>
<divclass="ttc"id="acio_8c_html_a05423b3e3cc5114cc845913e1079bdc3"><divclass="ttname"><ahref="cio_8c.html#a05423b3e3cc5114cc845913e1079bdc3">opj_stream_set_skip_function</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_set_skip_function(opj_stream_t *p_stream, opj_stream_skip_fn p_function)</div><divclass="ttdoc">Sets the given function to be used as a skip function.</div><divclass="ttdef"><b>Definition:</b> cio.c:248</div></div>