Ase::FastMemory::HugePage struct

Interface to the OS huge page allocator.

Public static functions

static auto allocate(size_t minimum_alignment, size_t bytelength) →  HugePageP
Try to allocate a HugePage >= bytelength with minimum_alignment, usual sizes are 2MB.

Public functions

auto alignment() const →  size_t
Alignment of the memory area.
auto mem() const →  char*
Allocated memroy area.
auto size() const →  size_t
Size in bytes of the memroy area.