提交 333aff8a authored 作者: Travis Cross's avatar Travis Cross

Document that switch_core_alloc returns zeroed memory

上级 1fe6fb6d
...@@ -645,6 +645,7 @@ SWITCH_DECLARE(void *) switch_core_perform_alloc(_In_ switch_memory_pool_t *pool ...@@ -645,6 +645,7 @@ SWITCH_DECLARE(void *) switch_core_perform_alloc(_In_ switch_memory_pool_t *pool
\brief Allocate memory directly from a memory pool \brief Allocate memory directly from a memory pool
\param _pool the memory pool to allocate from \param _pool the memory pool to allocate from
\param _mem the number of bytes to allocate \param _mem the number of bytes to allocate
\remark the memory returned has been memset to zero
\return a void pointer to the allocated memory \return a void pointer to the allocated memory
*/ */
#define switch_core_alloc(_pool, _mem) switch_core_perform_alloc(_pool, _mem, __FILE__, __SWITCH_FUNC__, __LINE__) #define switch_core_alloc(_pool, _mem) switch_core_perform_alloc(_pool, _mem, __FILE__, __SWITCH_FUNC__, __LINE__)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论