1 #ifndef LOADER_PAGEDALLOCATOR_H_
2 #define LOADER_PAGEDALLOCATOR_H_
11 explicit PagedAllocator(unsigned int pageSize);
14 PagedAllocator(const PagedAllocator &);
15 PagedAllocator &operator =(const PagedAllocator &);
18 char *Alloc(unsigned int size);
20 unsigned int PageOf(void *) const;
21 unsigned int PageOffsetOf(void *) const;
24 unsigned int Free() const;
27 const char *CurrentPage() const;
31 std::deque<char *> pages;
32 const unsigned int pageSize;