#pragma once #include "VirtualFileSystem.h" #include class FileHandle { public: explicit FileHandle(RetainPtr&&); ~FileHandle(); Unix::off_t seek(Unix::off_t, int whence); Unix::ssize_t read(byte* buffer, Unix::size_t count); int stat(Unix::stat*); ByteBuffer readEntireFile(); private: friend class VirtualFileSystem; RetainPtr m_vnode; Unix::off_t m_currentOffset { 0 }; };