libwasm ~master (2024-01-10T15:05:21Z)
Dub
Repo
ObjectAllocator
memutils
utils
Undocumented in source.
nothrow
struct
ObjectAllocator (
T
ALLOC
=
ThreadMem
) {
nothrow
enum
ElemSize
;
nothrow
static if
(
ALLOC.stringof == "PoolStack"
)
ReturnType
!(
ALLOC
.
top
)
function
()
m_getAlloc
;
nothrow
static if
(!(
ALLOC.stringof == "PoolStack"
))
static if
(
!hasMember!(ALLOC, "ident") && ALLOC.stringof != "void"
)
ALLOC
*
m_allocator
;
this
(ALLOC* base);
nothrow
enum
NOGC
;
alias
TR
=
RefTypeOf
!
T
;
TR
alloc
(ARGS args);
void
free
(TR obj);
}
Constructors
this
this
(ALLOC* base)
Undocumented in source.
Members
Aliases
TR
alias
TR
=
RefTypeOf
!
T
Undocumented in source.
Functions
alloc
TR
alloc
(ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void
free
(TR obj)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
ElemSize
enum
ElemSize
;
Undocumented in source.
NOGC
enum
NOGC
;
Undocumented in source.
Variables
m_allocator
ALLOC
*
m_allocator
;
Undocumented in source.
m_getAlloc
ReturnType
!(
ALLOC
.
top
)
function
()
m_getAlloc
;
Undocumented in source.
Meta
Source
See Implementation
memutils
utils
functions
FL_allocate
FL_deallocate
FL_reallocate
allocArray
freeArray
reallocArray
mixin templates
ConvenienceAllocators
structs
CTFE
Malloc
ObjectAllocator
ThreadMem