FreeRDP
bitstream.h File Reference
#include <winpr/assert.h>
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/wlog.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  wBitStream
 

Macros

#define BITDUMP_MSB_FIRST   0x00000001
 
#define BITDUMP_STDERR   0x00000002
 

Functions

static INLINE void BitStream_Prefetch (wBitStream *_bs)
 
static INLINE void BitStream_Fetch (wBitStream *_bs)
 
static INLINE void BitStream_Flush (wBitStream *_bs)
 
static INLINE void BitStream_Shift (wBitStream *_bs, UINT32 _nbits)
 
static INLINE void BitStream_Shift32 (wBitStream *_bs)
 
static INLINE void BitStream_Write_Bits (wBitStream *_bs, UINT32 _bits, UINT32 _nbits)
 
static INLINE size_t BitStream_GetRemainingLength (wBitStream *_bs)
 
WINPR_API void BitDump (const char *tag, UINT32 level, const BYTE *buffer, UINT32 length, UINT32 flags)
 
WINPR_API UINT32 ReverseBits32 (UINT32 bits, UINT32 nbits)
 
WINPR_API void BitStream_Attach (wBitStream *bs, const BYTE *buffer, UINT32 capacity)
 
WINPR_API void BitStream_Free (wBitStream *bs)
 
WINPR_API wBitStreamBitStream_New (void)
 

Macro Definition Documentation

◆ BITDUMP_MSB_FIRST

#define BITDUMP_MSB_FIRST   0x00000001

◆ BITDUMP_STDERR

#define BITDUMP_STDERR   0x00000002

Function Documentation

◆ BitDump()

WINPR_API void BitDump ( const char *  tag,
UINT32  level,
const BYTE buffer,
UINT32  length,
UINT32  flags 
)
Here is the caller graph for this function:

◆ BitStream_Attach()

WINPR_API void BitStream_Attach ( wBitStream bs,
const BYTE buffer,
UINT32  capacity 
)
Here is the caller graph for this function:

◆ BitStream_Fetch()

static INLINE void BitStream_Fetch ( wBitStream _bs)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BitStream_Flush()

static INLINE void BitStream_Flush ( wBitStream _bs)
static
Here is the caller graph for this function:

◆ BitStream_Free()

WINPR_API void BitStream_Free ( wBitStream bs)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BitStream_GetRemainingLength()

static INLINE size_t BitStream_GetRemainingLength ( wBitStream _bs)
static
Here is the caller graph for this function:

◆ BitStream_New()

WINPR_API wBitStream* BitStream_New ( void  )
Here is the caller graph for this function:

◆ BitStream_Prefetch()

static INLINE void BitStream_Prefetch ( wBitStream _bs)
static
Here is the caller graph for this function:

◆ BitStream_Shift()

static INLINE void BitStream_Shift ( wBitStream _bs,
UINT32  _nbits 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BitStream_Shift32()

static INLINE void BitStream_Shift32 ( wBitStream _bs)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BitStream_Write_Bits()

static INLINE void BitStream_Write_Bits ( wBitStream _bs,
UINT32  _bits,
UINT32  _nbits 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReverseBits32()

WINPR_API UINT32 ReverseBits32 ( UINT32  bits,
UINT32  nbits 
)