2021-04-11 | Paul Boddie | raw annotate files changeset graph | Changed mmap to return the file size, not the populated extent of the region. Introduced a higher-level client library for file access. Adjusted handling of the region state in the file library. Added a test of the higher-level client library. |
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 offset_t region_size() = 0; 19 20 virtual void release(Region *region) = 0; 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4