stdx.allocator.mmap_allocator
-
Declaration
struct
MmapAllocator
;Allocator (currently defined only for Posix and Windows) using and directly (or their Windows equivalents). There is no additional structure: each call to issues a call to , and each call to issues . So is usually intended for allocating large chunks to be managed by fine-granular allocators.
-
Declaration
static shared MmapAllocator
instance
;The one shared
instance
. -
Declaration
enum size_t
alignment
;Alignment is page-size and hardcoded to 4096 (even though on certain systems it could be larger).
-
Declaration
shared void[]
allocate
(size_tbytes
);
shared booldeallocate
(void[]b
);Allocator API.
-