2021-03-22 | Paul Boddie | raw files shortlog changelog graph | Added a method exposing the default region size. | |
memory.h (file) |
1.1 --- a/memory.h Mon Mar 22 22:02:54 2021 +0100 1.2 +++ b/memory.h Mon Mar 22 22:03:23 2021 +0100 1.3 @@ -21,12 +21,15 @@ 1.4 offset_t _region_size; 1.5 bool _limited; 1.6 1.7 + Region *allocate(offset_t size); 1.8 + 1.9 public: 1.10 explicit Memory(unsigned int limit, offset_t region_size=PAGE_SIZE); 1.11 1.12 explicit Memory(); 1.13 1.14 - Region *allocate(offset_t size); 1.15 + offset_t region_size() 1.16 + { return _region_size; } 1.17 1.18 Region *region(offset_t size); 1.19