⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rvserialmem.h

📁 h.248协议源码
💻 H
字号:
/******************************************************************************
Filename:    rvserialmem.h
Description: serial memory allocator
*******************************************************************************
                Copyright (c) 2001 RADVision Inc.
*******************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision Inc.
No part of this publication may be reproduced in any form whatsoever without
written prior approval by RADVision Inc.

RADVision Inc. reserves the right to revise this publication and make changes
without obligation to notify any person of such revisions or changes.
******************************************************************************/

#ifndef RV_SERIALMEM_H
#define RV_SERIALMEM_H

#include "rvpool.h"

#ifdef __cplusplus
extern "C" {
#endif

struct RvSerialMemBlock_;

typedef struct
{
	RvMutex mutex;
	RvPool pool;
	struct RvSerialMemBlock_ *curBlock;
	size_t maxSize;
	RvAlloc *bigAlloc;
} RvSerialMem;

RvSerialMem* rvSerialMemConstruct(RvSerialMem *x, size_t blockSize);
RvSerialMem* rvSerialMemConstructEx(RvSerialMem *x, size_t blockSize, RvAlloc *bigAlloc);
void rvSerialMemDestruct(RvSerialMem *x);
void *rvSerialMemAlloc(void *data, size_t sz);
void rvSerialMemDealloc(void *data, size_t sz, void *ptr);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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