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

Functions

static BOOL BufferPool_ShiftAvailable (wBufferPool *pool, int index, int count)
 
static BOOL BufferPool_ShiftUsed (wBufferPool *pool, int index, int count)
 
int BufferPool_GetPoolSize (wBufferPool *pool)
 
int BufferPool_GetBufferSize (wBufferPool *pool, void *buffer)
 
voidBufferPool_Take (wBufferPool *pool, int size)
 
BOOL BufferPool_Return (wBufferPool *pool, void *buffer)
 
void BufferPool_Clear (wBufferPool *pool)
 
wBufferPool * BufferPool_New (BOOL synchronized, int fixedSize, DWORD alignment)
 
void BufferPool_Free (wBufferPool *pool)
 

Function Documentation

void BufferPool_Clear ( wBufferPool *  pool)

Releases the buffers currently cached in the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

void BufferPool_Free ( wBufferPool *  pool)

Here is the call graph for this function:

Here is the caller graph for this function:

int BufferPool_GetBufferSize ( wBufferPool *  pool,
void buffer 
)

Get the size of a pooled buffer

Here is the call graph for this function:

Here is the caller graph for this function:

int BufferPool_GetPoolSize ( wBufferPool *  pool)

Get the buffer pool size

Here is the call graph for this function:

Here is the caller graph for this function:

wBufferPool* BufferPool_New ( BOOL  synchronized,
int  fixedSize,
DWORD  alignment 
)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL BufferPool_Return ( wBufferPool *  pool,
void buffer 
)

Returns a buffer to the pool.

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL BufferPool_ShiftAvailable ( wBufferPool *  pool,
int  index,
int  count 
)
static

WinPR: Windows Portable Runtime Buffer Pool

Copyright 2012 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. C equivalent of the C# BufferManager Class: http://msdn.microsoft.com/en-us/library/ms405814.aspx Methods

Here is the caller graph for this function:

static BOOL BufferPool_ShiftUsed ( wBufferPool *  pool,
int  index,
int  count 
)
static

Here is the caller graph for this function:

void* BufferPool_Take ( wBufferPool *  pool,
int  size 
)

Gets a buffer of at least the specified size from the pool.

Here is the call graph for this function:

Here is the caller graph for this function: