1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/files/block_file_accessor.h Sun Mar 14 21:41:49 2021 +0100
1.3 @@ -0,0 +1,23 @@
1.4 +#pragma once
1.5 +
1.6 +#include "accessor.h"
1.7 +
1.8 +/* A block file accessor, providing flexpages corresponding to the regions of
1.9 + loaded files. */
1.10 +
1.11 +class BlockFileAccessor : public Accessor
1.12 +{
1.13 +protected:
1.14 + char *_data;
1.15 +
1.16 +public:
1.17 + explicit BlockFileAccessor(const char *path, fileid_t fileid);
1.18 +
1.19 + /* Data transfer methods. */
1.20 +
1.21 + virtual void fill(Flexpage *flexpage);
1.22 +
1.23 + virtual void flush(Flexpage *flexpage);
1.24 +};
1.25 +
1.26 +// vim: tabstop=4 expandtab shiftwidth=4