Merge branch 'master' of https://github.com/hyzboy/CMCore
This commit is contained in:
@@ -422,9 +422,9 @@ namespace hgl
|
||||
* 指定类型数据清0
|
||||
*/
|
||||
template<typename T>
|
||||
inline void hgl_zero(T *data)
|
||||
inline void hgl_zero(T *data,const uint count)
|
||||
{
|
||||
memset(data,0,sizeof(T));
|
||||
memset(data,0,sizeof(T)*count);
|
||||
}
|
||||
}//namespace hgl
|
||||
|
||||
|
Reference in New Issue
Block a user