template <MemoryApi Memory>
class PageAllocator
Defined at line 58 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
trivial_allocator::PageAllocator is an AllocateFunction compatible with
trivial_allocator::BasicLeakyAllocator. It uses the Memory object to do
whole-page allocations.
Its constructor forwards arguments to the Memory constructor, so the PageAllocator object is
copyable and/or movable if the Memory object is.
Some Memory object implementations are provided by:
*
<lib
/trivial-allocator/zircon.h>
*
<lib
/trivial-allocator/posix.h>
Public Methods
void PageAllocator<Memory> ()
Defined at line 127 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
void PageAllocator<Memory> (const PageAllocator<Memory> & )
Defined at line 128 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
void PageAllocator<Memory> (PageAllocator<Memory> && )
Defined at line 129 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
PageAllocator<Memory> & operator= (PageAllocator<Memory> && )
Defined at line 131 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
template <typename... Args>
void PageAllocator<Memory> (Args &&... args)
Defined at line 134 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
Allocation operator() (size_t & size, size_t alignment)
Defined at line 136 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
Allocation operator() (size_t & size, size_t alignment)
Defined at line 136 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
Memory & memory ()
Defined at line 151 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h
const Memory & memory ()
Defined at line 152 of file ../../src/lib/trivial-allocator/include/lib/trivial-allocator/page-allocator.h