62 static constexpr ncnt MIN_SZ = 20;
69 void* operator[](nidx
n);
70 const void* operator[](nidx
n)
const BY_CONST_FUNC(
operator[](
n));
73 void* get(nidx
n) {
return _get(
n); }
76 void* new1()
override;
79 ncnt len()
const override;
80 ncnt size()
const override;
98 const nuchar* _getHeap()
const BY_CONST_FUNC(_getHeap())
103 const nuchar* _getEOB()
const BY_CONST_FUNC(_getEOB())
105 nbool _index(nidx start);
106 ncnt _getRealBlkSize();
107 void* _allocHeap(ncnt
new_sz);
Abstract allocator interface for memory management
Definition allocator.hpp:21
Memory chunk for block-based allocation
Definition chunk.hpp:57
nbool has(const instance &it) const override
Checks if this chunk contains the memory allocated for the given instance.
void * _get(nidx n) override
Base class for all managed instances in memlite system
Definition instance.hpp:41
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16