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