diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/defalloc.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/defalloc.h b/include/defalloc.h index 184378d84..afdb95edd 100644 --- a/include/defalloc.h +++ b/include/defalloc.h @@ -13,14 +13,15 @@ namespace Botan { /************************************************* * Malloc Allocator * *************************************************/ -class Malloc_Allocator : public Pooling_Allocator +class Malloc_Allocator : public Allocator { public: - Malloc_Allocator() : Pooling_Allocator(64*1024, false) {} + void* allocate(u32bit); + void deallocate(void*, u32bit); + std::string type() const { return "malloc"; } - private: - void* alloc_block(u32bit); - void dealloc_block(void*, u32bit); + + Malloc_Allocator(); }; /************************************************* |