[ox/fs] Add support for direct access to FS memory

This commit is contained in:
2019-11-01 01:25:24 -05:00
parent 73377068c6
commit 9da47f75c0
4 changed files with 70 additions and 17 deletions

View File

@ -43,10 +43,14 @@ class PassThroughFS: public FileSystem {
ox::Error read(const char *path, void *buffer, std::size_t buffSize) override;
ox::ValErr<const uint8_t*> read(const char*) override;
ox::Error read(uint64_t inode, void *buffer, std::size_t size) override;
ox::Error read(uint64_t inode, std::size_t readStart, std::size_t readSize, void *buffer, std::size_t *size) override;
ox::ValErr<const uint8_t*> read(uint64_t) override;
template<typename F>
ox::Error ls(const char *dir, F cb);