1 template <
size_t MaxSize,
size_t MaxAlignment,
size_t Offset>
4 template <
size_t MaxSize,
size_t MaxAlignment,
size_t Offset>
6 LUG_ASSERT(offset == Offset,
"Chunk allocator doesn't support multiple offset");
7 LUG_ASSERT(MaxSize >= size,
"Size of the allocation is greater than the chunk's max size");
8 LUG_ASSERT(MaxAlignment >= alignment,
"Alignment of the allocation is greater than the chunk's max alignment");
21 return allocate(size, alignment, offset);
24 template <
size_t MaxSize,
size_t MaxAlignment,
size_t Offset>
29 template <
size_t MaxSize,
size_t MaxAlignment,
size_t Offset>
35 template <
size_t MaxSize,
size_t MaxAlignment,
size_t Offset>
size_t getSize(void *ptr) const
#define LUG_ASSERT(assertion, message)
virtual Page * requestNextPage()=0
lug::System::Memory::Area::Page * _firstPage
void * allocate(size_t size, size_t alignment, size_t offset)
lug::System::Memory::Area::Page * _currentPage
bool grow(void *start, void *end, size_t alignment, size_t offset)
lug::System::Memory::Area::IArea *const _area