libwasm.rt.allocator

Members

Functions

FL_allocate
void[] FL_allocate(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
FL_deallocate
void FL_deallocate(void[] mem)
Undocumented in source. Be warned that the author may not have intended to support it.
FL_reallocate
void[] FL_reallocate(void[] mem, size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_allocmemory
void* _d_allocmemory(size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
alignedAt
bool alignedAt(T* ptr, uint alignment)

Returns true if ptr is aligned at alignment.

allocString
ubyte* allocString(uint bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
fmax
T fmax(T vala, T valb)
Undocumented in source.
isPowerOf2
bool isPowerOf2(X x)

Check whether a number is an integer power of two.

max
auto max(T args)

Iterates the passed arguments and returns the minimum value.

roundUpToAlignment
size_t roundUpToAlignment(size_t n, uint alignment)

Returns n rounded up to a multiple of alignment, which must be a power of 2.

Structs

PoolStackAllocator
struct PoolStackAllocator
Undocumented in source.
ThreadMemAllocator
struct ThreadMemAllocator
Undocumented in source.
WasmAllocator
struct WasmAllocator
Undocumented in source.

Variables

platformAlignment
enum uint platformAlignment;

The alignment that is guaranteed to accommodate any D object allocation on the current platform.

Meta