uint8*block=(uint8*)aligned_malloc(NL_DEFAULT_MEMORY_ALIGNMENT+size,NL_DEFAULT_MEMORY_ALIGNMENT);//new uint8[size + sizeof(uint)]; // an additionnal uint is needed to store size of block
if(!block)return NULL;
uint8*block=(uint8*)aligned_malloc(NL_DEFAULT_MEMORY_ALIGNMENT+(ptrdiff_t)size,NL_DEFAULT_MEMORY_ALIGNMENT);//new uint8[size + sizeof(uint)]; // an additionnal uint is needed to store size of block
_ObjectSizeToAllocator[entry]=newCFixedSizeAllocator(entry*_Granularity+NL_DEFAULT_MEMORY_ALIGNMENT,_MaxAllocSize/size);// an additionnal uint is needed to store size of block