encmemory.h
来自「freescale i.mx31 BSP CE5.0全部源码」· C头文件 代码 · 共 54 行
H
54 行
/*------------------------------------------------------------------------------
-- --
-- This software is confidential and proprietary and may be used --
-- only as expressly authorized by a licensing agreement from --
-- --
-- Hantro Products Oy. --
-- --
-- In the event of publication, the following notice is applicable: --
-- --
-- (C) COPYRIGHT 2003 HANTRO PRODUCTS OY --
-- ALL RIGHTS RESERVED --
-- --
-- The entire notice above must be reproduced on all copies. --
-- --
--------------------------------------------------------------------------------
--
-- Abstract : Memory management
--
-------------------------------------------------------------------------------*/
#ifndef __ENCMEMORY_H__
#define __ENCMEMORY_H__
#include "basetype.h"
#include "enccontainer.h"
#include <stdlib.h>
#include <string.h>
i32 AllocMem(EncContainer_t * pEncData);
void FreeMem(EncContainer_t * pEncData);
static __inline void *hantro_malloc(u32 n)
{
return malloc(n);
}
static __inline void *hantro_calloc(u32 n, u32 s)
{
return calloc(n, s);
}
static __inline void *hantro_memcpy(void *d, const void *s, u32 n)
{
return memcpy(d, s, n);
}
static __inline void hantro_free(void *p)
{
free(p);
}
#endif /* __ENCMEMORY_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?