2021-03-13 | Paul Boddie | raw annotate files changeset graph | Introduced distinct span and populated span functions for mapped regions. |
1 #pragma once 2 3 #include "accessor.h" 4 5 /* A file accessor, providing flexpages corresponding to file regions. */ 6 7 class TestFileAccessor : public Accessor 8 { 9 public: 10 explicit TestFileAccessor(fileid_t fileid, offset_t size=0); 11 12 /* Data transfer methods. */ 13 14 virtual void fill(Flexpage *flexpage); 15 16 virtual void flush(Flexpage *flexpage); 17 }; 18 19 // vim: tabstop=4 expandtab shiftwidth=4