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

Macros

#define BipBlock_Clear(_bbl)   _bbl.index = _bbl.size = 0
 
#define BipBlock_Copy(_dst, _src)
 

Functions

void BipBuffer_Clear (wBipBuffer *bb)
 
BOOL BipBuffer_AllocBuffer (wBipBuffer *bb, size_t size)
 
BOOL BipBuffer_Grow (wBipBuffer *bb, size_t size)
 
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)
 
int BipBuffer_Write (wBipBuffer *bb, 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)
 
int BipBuffer_Read (wBipBuffer *bb, BYTE *data, size_t size)
 
wBipBuffer * BipBuffer_New (size_t size)
 
void BipBuffer_Free (wBipBuffer *bb)
 

Macro Definition Documentation

#define BipBlock_Clear (   _bbl)    _bbl.index = _bbl.size = 0

WinPR: Windows Portable Runtime BipBuffer

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. The Bip Buffer - The Circular Buffer with a Twist: http://www.codeproject.com/Articles/3479/The-Bip-Buffer-The-Circular-Buffer-with-a-Twist

#define BipBlock_Copy (   _dst,
  _src 
)
Value:
_dst.index = _src.index; \
_dst.size = _src.size

Function Documentation

BOOL BipBuffer_AllocBuffer ( wBipBuffer *  bb,
size_t  size 
)

Here is the caller graph for this function:

size_t BipBuffer_BufferSize ( wBipBuffer *  bb)

Here is the caller graph for this function:

void BipBuffer_Clear ( wBipBuffer *  bb)

Here is the caller graph for this function:

void BipBuffer_Free ( wBipBuffer *  bb)

Here is the call graph for this function:

Here is the caller graph for this function:

void BipBuffer_FreeBuffer ( wBipBuffer *  bb)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL BipBuffer_Grow ( wBipBuffer *  bb,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

wBipBuffer* BipBuffer_New ( size_t  size)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

int BipBuffer_Read ( wBipBuffer *  bb,
BYTE data,
size_t  size 
)

Here is the call graph for this function:

void BipBuffer_ReadCommit ( wBipBuffer *  bb,
size_t  size 
)

Here is the caller graph for this function:

BYTE* BipBuffer_ReadReserve ( wBipBuffer *  bb,
size_t  size 
)

Here is the call graph for this function:

BYTE* BipBuffer_ReadTryReserve ( wBipBuffer *  bb,
size_t  size,
size_t *  reserved 
)

Here is the caller graph for this function:

size_t BipBuffer_UsedSize ( wBipBuffer *  bb)

Here is the caller graph for this function:

int BipBuffer_Write ( wBipBuffer *  bb,
BYTE data,
size_t  size 
)

Here is the call graph for this function:

void BipBuffer_WriteCommit ( wBipBuffer *  bb,
size_t  size 
)

Here is the caller graph for this function:

BYTE* BipBuffer_WriteReserve ( wBipBuffer *  bb,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE* BipBuffer_WriteTryReserve ( wBipBuffer *  bb,
size_t  size,
size_t *  reserved 
)

Here is the caller graph for this function: