XmmsClient
Functions
xmmsv_bitbuffer.c File Reference
#include <stdio.h>
#include <string.h>
#include <xmmscpriv/xmmsv.h>
#include <xmmscpriv/xmmsc_util.h>

Functions

xmmsv_txmmsv_bitbuffer_new_ro (const unsigned char *v, int len)
 
xmmsv_txmmsv_new_bitbuffer_ro (const unsigned char *v, int len)
 Allocates a new bitbuffer xmmsv_t. More...
 
xmmsv_txmmsv_bitbuffer_new (void)
 
xmmsv_txmmsv_new_bitbuffer (void)
 Allocates a new empty bitbuffer xmmsv_t. More...
 
int xmmsv_bitbuffer_get_bits (xmmsv_t *v, int bits, int64_t *res)
 
int xmmsv_bitbuffer_get_data (xmmsv_t *v, unsigned char *b, int len)
 
int xmmsv_bitbuffer_put_bits (xmmsv_t *v, int bits, int64_t d)
 
int xmmsv_bitbuffer_put_bits_at (xmmsv_t *v, int bits, int64_t d, int offset)
 
int xmmsv_bitbuffer_put_data (xmmsv_t *v, const unsigned char *b, int len)
 
int xmmsv_bitbuffer_align (xmmsv_t *v)
 
int xmmsv_bitbuffer_goto (xmmsv_t *v, int pos)
 
int xmmsv_bitbuffer_pos (xmmsv_t *v)
 
int xmmsv_bitbuffer_rewind (xmmsv_t *v)
 
int xmmsv_bitbuffer_end (xmmsv_t *v)
 
int xmmsv_bitbuffer_len (xmmsv_t *v)
 
const unsigned char * xmmsv_bitbuffer_buffer (xmmsv_t *v)
 
int xmmsv_get_bitbuffer (const xmmsv_t *val, const unsigned char **r, unsigned int *rlen)
 Retrieves the bit buffer from the value. More...