Module playdate.allocator
Source
License
MIT License
Members
-
pdstatic PlaydateAPI* pd; -
theAllocatorstatic PDAllocator theAllocator;The global instance of this allocator
-
PDAllocatorstruct PDAllocator;Playdate heap allocator.
Remarks
Adapted from std.experimental.allocator.mallocator-
alignmentenum uint alignment;The alignment is a static constant equal to
platformAlignment, which ensures proper alignment for any D data type.The alignment that is guaranteed to accommodate any D object allocation on the current platform.
-
allocateconst nothrow @nogc void[] allocate(size_tbytes); -
deallocateconst nothrow @nogc @system bool deallocate(void[]b); -
reallocateconst nothrow @nogc @system bool reallocate(ref void[]b, size_ts);