rvallocadapt.h

来自「h.248协议源码」· C头文件 代码 · 共 57 行

H
57 行
字号
/******************************************************************************
Filename: rvallocadapt.h
Description: Allocator adaptors
******************************************************************************
                Copyright (c) 1999 RADVision Inc.
************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision LTD.
No part of this publication may be reproduced in any form whatsoever 
without written prior approval by RADVision LTD..

RADVision LTD. reserves the right to revise this publication and make 
changes without obligation to notify any person of such revisions or 
changes.
******************************************************************************
$Revision:$
$Date:$ 10.5.00
$Author: Dan Elbert
******************************************************************************/

#ifndef RV_ALLOCADAPT_H
#define RV_ALLOCADAPT_H

#include "rvalloc.h"
#include "rvpool.h"
#include "rvtypes.h"

#if defined(__cplusplus)
extern "C" {
#endif 


/* Null allocator object */
extern RvAlloc rvNullAlloc;


/* 
Allocator adaptor for rvPool
alloc -  The allocator
pool  -  The pool to allocate from
expand - If true, allocations bigger than pool block size will 
         be dynamically allocated
*/
RvAlloc* rvPoolAllocConstruct(RvAlloc* alloc, RvPool* rawMemForPool,
  size_t blockSize, size_t blocksPerPage, RvBool expand);
void rvPoolAllocDestruct(RvAlloc* alloc);

/* Allocator adaptor using an external buffer */
RvAlloc* rvBufAllocConstruct(RvAlloc* alloc, void* buffer, size_t size);
#define rvBufAllocDestruct(a)	

#if defined(__cplusplus)
}
#endif 

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?