Commit 9e8f0a2d authored by Petri Hintukainen's avatar Petri Hintukainen

bits: mark buffer const

parent 8ed41e3a
......@@ -32,7 +32,7 @@
* This file defines functions, structures for handling streams of bits
*/
void bb_init( BITBUFFER *bb, uint8_t *p_data, size_t i_data )
void bb_init( BITBUFFER *bb, const uint8_t *p_data, size_t i_data )
{
bb->p_start = p_data;
bb->p = bb->p_start;
......
......@@ -39,9 +39,9 @@
#define BF_BUF_SIZE (1024*32)
typedef struct {
uint8_t *p_start;
uint8_t *p;
uint8_t *p_end;
const uint8_t *p_start;
const uint8_t *p;
const uint8_t *p_end;
ssize_t i_left; /* i_count number of available bits */
} BITBUFFER;
......@@ -55,7 +55,7 @@ typedef struct {
size_t size;
} BITSTREAM;
BD_PRIVATE void bb_init( BITBUFFER *bb, uint8_t *p_data, size_t i_data );
BD_PRIVATE void bb_init( BITBUFFER *bb, const uint8_t *p_data, size_t i_data );
BD_PRIVATE void bs_init( BITSTREAM *bs, BD_FILE_H *fp );
BD_PRIVATE void bb_seek( BITBUFFER *bb, int64_t off, int whence);
BD_PRIVATE void bs_seek( BITSTREAM *bs, int64_t off, int whence);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment