📄 prmem.h
字号:
/*
PrMem.h
Copyright (C) 2004-2005 DVBStudio. All rights reserved.
*/
#ifndef _PrMEM_H_
#define _PrMEM_H_
#include "PrTypes.h"
//#include "memory.h"
#include "stdio.h"
#include "string.h"
#ifdef _WIN32
#include"memwatch.h"
#endif
PR_BEGIN_EXTERN_C
typedef struct PDPartition *PRPartition;
PRStatus PrMemInit(void);
PRStatus PrMemTerm(void);
#ifdef _DEBUG
#ifndef _WIN32
void*PrMalloc(UINT32 size);
void PrFree(void*block);
#else
#define PrMalloc malloc
#define PrFree free
#endif
#else //////////////////////////////////////////
void*PrMalloc(UINT32 size);
void PrFree(void*block);
#endif
void * PrCalloc(UINT32 nelem,UINT32 elsize);
void * PrRealloc(void *block, UINT32 size);
PRPartition PrPartitionCreate(UINT32 size);
void PrPartitionDelete(PRPartition partition);
void * PrPartitionAlloc(PRPartition partition,UINT32 size);
void PrPartitionFree(PRPartition partition, void *block);
void * PrPartitionRealloc(PRPartition partition, void *block,UINT32 size);
PR_END_EXTERN_C
#endif /* _PrMEM_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -