[ox/fs] Cleanup
This commit is contained in:
parent
8a07554c1d
commit
85a98222d4
9
deps/ox/src/ox/fs/filestore/filestore.hpp
vendored
9
deps/ox/src/ox/fs/filestore/filestore.hpp
vendored
@ -29,17 +29,20 @@ class FileStore {
|
|||||||
|
|
||||||
virtual Error setSize(InodeId_t size) = 0;
|
virtual Error setSize(InodeId_t size) = 0;
|
||||||
|
|
||||||
virtual Error write(InodeId_t id, void *data, FsSize_t dataLen, uint8_t fileType = 0) = 0;
|
|
||||||
|
|
||||||
virtual Error incLinks(InodeId_t id) = 0;
|
virtual Error incLinks(InodeId_t id) = 0;
|
||||||
|
|
||||||
virtual Error decLinks(InodeId_t id) = 0;
|
virtual Error decLinks(InodeId_t id) = 0;
|
||||||
|
|
||||||
|
virtual Error write(InodeId_t id, void *data, FsSize_t dataLen, uint8_t fileType = 0) = 0;
|
||||||
|
|
||||||
virtual Error read(InodeId_t id, void *data, FsSize_t dataSize, FsSize_t *size) = 0;
|
virtual Error read(InodeId_t id, void *data, FsSize_t dataSize, FsSize_t *size) = 0;
|
||||||
|
|
||||||
virtual Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size) = 0;
|
virtual Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size) = 0;
|
||||||
|
|
||||||
virtual ValErr<const uint8_t*> read(InodeId_t id) = 0;
|
/**
|
||||||
|
* @return data section of the requested file
|
||||||
|
*/
|
||||||
|
virtual const ptrarith::Ptr<uint8_t, std::size_t> read(InodeId_t id) = 0;
|
||||||
|
|
||||||
virtual StatInfo stat(InodeId_t id) = 0;
|
virtual StatInfo stat(InodeId_t id) = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user