MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::ThreadLocalDynamicArenaAllocator Struct Reference

State variable for thread local dynamic arena allocator Must live longer (and at the same memory address) than all allocators returned by allocator() More...

#include <alloc.hpp>

Collaboration diagram for mtcore::ThreadLocalDynamicArenaAllocator:

Public Member Functions

Allocator allocator () noexcept
 

Public Attributes

Slice< u8buff
 
Allocatorroot = nullptr
 
size_t arenaSizeHint = 0
 
size_t arenaCountHint = 0
 
size_t offset = 0
 

Detailed Description

State variable for thread local dynamic arena allocator Must live longer (and at the same memory address) than all allocators returned by allocator()

Definition at line 406 of file core/mtcore/alloc.hpp.

Member Function Documentation

◆ allocator()

Allocator mtcore::ThreadLocalDynamicArenaAllocator::allocator ( )
noexcept
Returns
Allocator VTable that can be passed to functions which allocator

Member Data Documentation

◆ arenaCountHint

size_t mtcore::ThreadLocalDynamicArenaAllocator::arenaCountHint = 0

Definition at line 410 of file core/mtcore/alloc.hpp.

◆ arenaSizeHint

size_t mtcore::ThreadLocalDynamicArenaAllocator::arenaSizeHint = 0

Definition at line 409 of file core/mtcore/alloc.hpp.

◆ buff

Slice<u8> mtcore::ThreadLocalDynamicArenaAllocator::buff

Definition at line 407 of file core/mtcore/alloc.hpp.

◆ offset

size_t mtcore::ThreadLocalDynamicArenaAllocator::offset = 0

Definition at line 411 of file core/mtcore/alloc.hpp.

◆ root

Allocator* mtcore::ThreadLocalDynamicArenaAllocator::root = nullptr

Definition at line 408 of file core/mtcore/alloc.hpp.


The documentation for this struct was generated from the following file: