📄 rvallocadapt.h
字号:
/******************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -