xo-alloc2: ++ plumbing for AAllocator / DArena
This commit is contained in:
parent
5964bcf3d5
commit
e0dd9d2a1c
10 changed files with 223 additions and 91 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "IAllocator_DArena.hpp"
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
|
|
@ -14,6 +15,11 @@ namespace xo {
|
|||
return s.config_.name_;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
IAllocator_DArena::reserved(const DArena & s) {
|
||||
return s.hi_ - s.lo_;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
IAllocator_DArena::size(const DArena & s) {
|
||||
return s.limit_ - s.lo_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue