7 #ifndef OS_STUB_FILE_HPP 8 #define OS_STUB_FILE_HPP 52 void close()
override;
148 #endif // OS_STUB_FILE_HPP
Os::FileInterface::Status open(const char *path, Mode mode, OverwriteType overwrite) override
open file with supplied path and mode
Status flush() override
flush file contents to storage
base implementation of FileHandle
PlatformSizeType FwSizeType
~StubFile() override=default
destructor
Status size(FwSizeType &size_result) override
get size of currently open file
Status position(FwSizeType &position_result) override
get file pointer position of the currently open file
PlatformSignedSizeType FwSignedSizeType
stub implementation of Os::File
Status write(const U8 *buffer, FwSizeType &size, WaitType wait) override
read data from this file into supplied buffer bounded by size
FileHandle * getHandle() override
returns the raw file handle
Status seek(FwSignedSizeType offset, SeekType seekType) override
seek the file pointer to the given offset
Status read(U8 *buffer, FwSizeType &size, WaitType wait) override
read data from this file into supplied buffer bounded by size
uint8_t U8
8-bit unsigned integer
void close() override
close the file, if not opened then do nothing
Status preallocate(FwSizeType offset, FwSizeType length) override
pre-allocate file storage
StubFile()=default
constructor