2021-04-12 | Paul Boddie | raw annotate files changeset graph | Introduced distinct types instead of using the file offset type throughout. This makes a difference on 32-bit architectures where the address type will only be 32 bits wide, whereas the file offset type should be 64 bits wide. |
1 #pragma once 2 3 #include "region.h" 4 5 6 7 /* A memory pool interface. */ 8 9 class Memory 10 { 11 public: 12 virtual ~Memory() 13 { 14 } 15 16 virtual Region *region() = 0; 17 18 virtual length_t region_size() = 0; 19 20 virtual void release(Region *region) = 0; 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4