7 #ifndef BOTAN_MEM_POOL_H_
8 #define BOTAN_MEM_POOL_H_
10 #include <botan/types.h>
11 #include <botan/mutex.h>
35 void* allocate(
size_t size);
37 bool deallocate(
void* p,
size_t size) noexcept;
46 const size_t m_page_size = 0;
50 std::deque<uint8_t*> m_free_pages;
51 std::map<size_t, std::deque<Bucket>> m_buckets_for;
52 uintptr_t m_min_page_ptr;
53 uintptr_t m_max_page_ptr;
int(* final)(unsigned char *, CTX *)