TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Macros | Functions
bitstream.h File Reference

Go to the source code of this file.

Classes

struct  BitStream
 

Macros

#define BitStream_size(__bstream__)   (__bstream__->length)
 
#define BitStream_reset(__bstream__)   (__bstream__->length = 0)
 

Functions

BitStreamBitStream_new (void)
 
int BitStream_append (BitStream *bstream, BitStream *arg)
 
int BitStream_appendNum (BitStream *bstream, size_t bits, unsigned int num)
 
int BitStream_appendBytes (BitStream *bstream, size_t size, unsigned char *data)
 
unsigned char * BitStream_toByte (BitStream *bstream)
 
void BitStream_free (BitStream *bstream)
 

Macro Definition Documentation

#define BitStream_reset (   __bstream__)    (__bstream__->length = 0)

Definition at line 39 of file bitstream.h.

Referenced by QRinput_convertData(), and QRinput_splitQRinputToStruct().

#define BitStream_size (   __bstream__)    (__bstream__->length)

Function Documentation

int BitStream_append ( BitStream bstream,
BitStream arg 
)
int BitStream_appendBytes ( BitStream bstream,
size_t  size,
unsigned char *  data 
)
int BitStream_appendNum ( BitStream bstream,
size_t  bits,
unsigned int  num 
)
void BitStream_free ( BitStream bstream)
BitStream* BitStream_new ( void  )
unsigned char* BitStream_toByte ( BitStream bstream)

Definition at line 182 of file bitstream.c.

References BitStream_size, BitStream::data, and malloc().

Referenced by QRinput_getByteStream().