/* allocate space for num copies of specified type */
template <class T> T *mallocn(unsigned num = 1)
- { return reinterpret_cast<T *>(malloc(sizeof(T) * num)); }
+ { return reinterpret_cast<T *>(malloc_T(sizeof(T),num)); }
/* malloc item.Data, set item.Length */
void allocItem(
private:
PLArenaPool *mPool;
+
+ void *malloc_T(size_t unit_bytesize,
+ size_t num_units);
};
/*