]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/PagedAllocator.h
new object file format in compiler
[l2e.git] / src / loader / PagedAllocator.h
index 48cda27ea759837ccb823418092562f02b813bdd..b9922c446446c5bb64f492f365ee04f394d8ceea 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * PagedAllocator.h
- *
- *  Created on: Oct 9, 2012
- *      Author: holy
- */
-
 #ifndef LOADER_PAGEDALLOCATOR_H_
 #define LOADER_PAGEDALLOCATOR_H_
 
@@ -24,6 +17,9 @@ private:
 public:
        char *Alloc(unsigned int size);
 
+       unsigned int PageOf(void *) const;
+       unsigned int PageOffsetOf(void *) const;
+
 private:
        unsigned int Free() const;
        void NewPage();
@@ -39,4 +35,4 @@ private:
 
 }
 
-#endif /* LOADER_PAGEDALLOCATOR_H_ */
+#endif