📄 ammem.c
字号:
/*
* AMMem.c
*
* the implementations of memory operations on wince platform
*
*/
#include "AMPlat.h"
#include "AMMem.h"
MPVoid AMMemAlloc(MHandle hContext, MLong size)
{
return (MPVoid)malloc(size);
}
MVoid AMMemFree(MHandle hContext, MPVoid pMem)
{
free(pMem);
}
MHandle AMHugeMemAlloc(MHandle hContext, MLong size)
{
return (MHandle)malloc(size);
}
MVoid AMHugeMemFree(MHandle hContext, MHandle hMem)
{
free( (MPVoid)hMem );
}
MPVoid AMHugeMemLock(MHandle hContext, MHandle hMem)
{
return (MPVoid)hMem;
}
MVoid AMHugeMemUnlock(MHandle hContext, MHandle hMem)
{
}
MVoid AMMemSet(MPVoid mem, MByte val, MLong size)
{
memset( mem, val, size );
}
MVoid AMMemCpy(MPVoid dst, const MPVoid src, MLong size)
{
memcpy(dst, src, size);
}
MVoid AMMemMove(MPVoid dst, const MPVoid src, MLong size)
{
memmove(dst, src, size);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -