rvmemblock.h

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

H
60 行
字号
#if (0)
************************************************************************
Filename   : 
Description:
************************************************************************
                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:$
$Author: D. Elbert$
************************************************************************
#endif
#ifndef RV_MEMBLOCK_H
#define RV_MEMBLOCK_H

#include <stddef.h>
#include "rvtypes.h"
#include "rvutil.h"
#include "rvalloc.h"

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

typedef struct RvMemBlock_ {
  char						 * cur;
  char            			 * end;
  struct RvMemBlock_		 * next;
  RvBool					   is_def_alloc;
} RvMemBlock;

typedef struct RvMemBlockMgr_ {
	RvAlloc		*   pool_alloc;
	RvMemBlock	*	head_block;
	RvMemBlock	*	mem_block;
} RvMemBlockMgr;


void * rvMemBlockAlloc(void * mem_mgr, size_t size);
/* Dummy function - does nothing */
void rvMemBlockDealloc(void*, size_t, void*);
void rvMemBlockContract(RvMemBlockMgr * mem_mgr);
RvMemBlock * rvMemBlockInit(RvMemBlockMgr * mem_mgr,RvAlloc* a);

#if defined(__cplusplus)
}
#endif

#endif /* _RV_MEM_BLOCK */

⌨️ 快捷键说明

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