Code: Select all
T *array_ptr;
unsigned short byte_align;
Code: Select all
if(byte_align)
{
new_size += byte_align;
array_ptr = new char[new_size];
data = (unsigned long*)(((unsigned long)array_ptr + byte_align) & (0xffffffff - (byte_align - 1)));
}
else
{
data = array_ptr = new T[new_size];
}