XmmsClient
Functions

Functions

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

Detailed Description

Function Documentation

int xmmsv_bitbuffer_align ( xmmsv_t v)
const unsigned char* xmmsv_bitbuffer_buffer ( xmmsv_t v)

Referenced by xmmsv_serialize().

int xmmsv_bitbuffer_deserialize_value ( xmmsv_t bb,
xmmsv_t **  val 
)

Referenced by xmmsv_deserialize().

int xmmsv_bitbuffer_end ( xmmsv_t v)
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_goto ( xmmsv_t v,
int  pos 
)
int xmmsv_bitbuffer_len ( xmmsv_t v)

Referenced by xmmsv_serialize().

xmmsv_t* xmmsv_bitbuffer_new ( void  )
xmmsv_t* xmmsv_bitbuffer_new_ro ( const unsigned char *  v,
int  len 
)
int xmmsv_bitbuffer_pos ( xmmsv_t v)
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 
)

Referenced by xmmsv_copy().

int xmmsv_bitbuffer_rewind ( xmmsv_t v)
int xmmsv_bitbuffer_serialize_value ( xmmsv_t bb,
xmmsv_t v 
)

Referenced by xmmsv_serialize().

int xmmsv_get_bitbuffer ( const xmmsv_t val,
const unsigned char **  r,
unsigned int *  rlen 
)

Retrieves the bit buffer from the value.

Parameters
vala xmmsv_t containing a string.
rthe return data. This data is owned by the value and will be freed when the value is freed.
rlenthe return length of data.
Returns
1 upon success otherwise 0
xmmsv_t* xmmsv_new_bitbuffer ( void  )

Allocates a new empty bitbuffer xmmsv_t.

Returns
The new xmmsv_t. Must be unreferenced with xmmsv_unref.

Referenced by xmmsv_bitbuffer_new(), xmmsv_copy(), and xmmsv_serialize().

xmmsv_t* xmmsv_new_bitbuffer_ro ( const unsigned char *  v,
int  len 
)

Allocates a new bitbuffer xmmsv_t.

Returns
The new xmmsv_t. Must be unreferenced with xmmsv_unref.

Referenced by xmmsv_bitbuffer_new_ro(), and xmmsv_deserialize().