FreeRDP
BipBuffer.c File Reference
#include <limits.h>
#include <winpr/crt.h>
#include <winpr/sysinfo.h>
#include <winpr/collections.h>

Functions

static INLINE void BipBlock_Clear (wBipBlock *_bbl)
 
static INLINE void BipBlock_Copy (wBipBlock *_dst, const wBipBlock *_src)
 
void BipBuffer_Clear (wBipBuffer *bb)
 
static BOOL BipBuffer_AllocBuffer (wBipBuffer *bb, size_t size)
 
BOOL BipBuffer_Grow (wBipBuffer *bb, size_t size)
 
static void BipBuffer_FreeBuffer (wBipBuffer *bb)
 
size_t BipBuffer_UsedSize (wBipBuffer *bb)
 
size_t BipBuffer_BufferSize (wBipBuffer *bb)
 
BYTEBipBuffer_WriteTryReserve (wBipBuffer *bb, size_t size, size_t *reserved)
 
BYTEBipBuffer_WriteReserve (wBipBuffer *bb, size_t size)
 
void BipBuffer_WriteCommit (wBipBuffer *bb, size_t size)
 
SSIZE_T BipBuffer_Write (wBipBuffer *bb, const BYTE *data, size_t size)
 
BYTEBipBuffer_ReadTryReserve (wBipBuffer *bb, size_t size, size_t *reserved)
 
BYTEBipBuffer_ReadReserve (wBipBuffer *bb, size_t size)
 
void BipBuffer_ReadCommit (wBipBuffer *bb, size_t size)
 
SSIZE_T BipBuffer_Read (wBipBuffer *bb, BYTE *data, size_t size)
 
wBipBuffer * BipBuffer_New (size_t size)
 
void BipBuffer_Free (wBipBuffer *bb)
 

Function Documentation

◆ BipBlock_Clear()

static INLINE void BipBlock_Clear ( wBipBlock *  _bbl)
static

The Bip Buffer - The Circular Buffer with a Twist: http://www.codeproject.com/Articles/3479/The-Bip-Buffer-The-Circular-Buffer-with-a-Twist

Here is the caller graph for this function:

◆ BipBlock_Copy()

static INLINE void BipBlock_Copy ( wBipBlock *  _dst,
const wBipBlock *  _src 
)
static
Here is the caller graph for this function:

◆ BipBuffer_AllocBuffer()

static BOOL BipBuffer_AllocBuffer ( wBipBuffer *  bb,
size_t  size 
)
static
Here is the caller graph for this function:

◆ BipBuffer_BufferSize()

size_t BipBuffer_BufferSize ( wBipBuffer *  bb)
Here is the caller graph for this function:

◆ BipBuffer_Clear()

void BipBuffer_Clear ( wBipBuffer *  bb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_Free()

void BipBuffer_Free ( wBipBuffer *  bb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_FreeBuffer()

static void BipBuffer_FreeBuffer ( wBipBuffer *  bb)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_Grow()

BOOL BipBuffer_Grow ( wBipBuffer *  bb,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_New()

wBipBuffer* BipBuffer_New ( size_t  size)

Construction, Destruction

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_Read()

SSIZE_T BipBuffer_Read ( wBipBuffer *  bb,
BYTE data,
size_t  size 
)
Here is the call graph for this function:

◆ BipBuffer_ReadCommit()

void BipBuffer_ReadCommit ( wBipBuffer *  bb,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_ReadReserve()

BYTE* BipBuffer_ReadReserve ( wBipBuffer *  bb,
size_t  size 
)
Here is the call graph for this function:

◆ BipBuffer_ReadTryReserve()

BYTE* BipBuffer_ReadTryReserve ( wBipBuffer *  bb,
size_t  size,
size_t *  reserved 
)
Here is the caller graph for this function:

◆ BipBuffer_UsedSize()

size_t BipBuffer_UsedSize ( wBipBuffer *  bb)
Here is the caller graph for this function:

◆ BipBuffer_Write()

SSIZE_T BipBuffer_Write ( wBipBuffer *  bb,
const BYTE data,
size_t  size 
)
Here is the call graph for this function:

◆ BipBuffer_WriteCommit()

void BipBuffer_WriteCommit ( wBipBuffer *  bb,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_WriteReserve()

BYTE* BipBuffer_WriteReserve ( wBipBuffer *  bb,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BipBuffer_WriteTryReserve()

BYTE* BipBuffer_WriteTryReserve ( wBipBuffer *  bb,
size_t  size,
size_t *  reserved 
)
Here is the caller graph for this function: