@param cio CIO handle
@return Returns the number of bytes before the end of the stream
*/
-int cio_numbytesleft(opj_cio_t *cio);
+OPJ_SIZE_T cio_numbytesleft(opj_cio_t *cio);
/**
Get pointer to the current position in the stream
@param cio CIO handle
*/
unsigned char *cio_getbp(opj_cio_t *cio);
/**
+*/
+opj_bool cio_byteout(opj_cio_t *cio, unsigned char v);
+/**
+*/
+unsigned char cio_bytein(opj_cio_t *cio);
+/**
Write some bytes
@param cio CIO handle
@param v Value to write
typedef enum
{
+ opj_signed_sentinel = -1, /* do not use in code */
opj_stream_e_output = 0x1,
opj_stream_e_input = 0x2,
opj_stream_e_end = 0x4,
/**
* Flags to tell the status of the stream.
*/
- OPJ_UINT32 m_status;
+ opj_stream_flag m_status;
}
opj_stream_private_t;