mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Import all this stuff into a single repo called Serenity.
This commit is contained in:
commit
5a30055157
67 changed files with 8836 additions and 0 deletions
17
VirtualFileSystem/FileHandle.cpp
Normal file
17
VirtualFileSystem/FileHandle.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "FileHandle.h"
|
||||
#include "FileSystem.h"
|
||||
|
||||
FileHandle::FileHandle(RetainPtr<VirtualFileSystem::Node>&& vnode)
|
||||
: m_vnode(std::move(vnode))
|
||||
{
|
||||
}
|
||||
|
||||
FileHandle::~FileHandle()
|
||||
{
|
||||
}
|
||||
|
||||
ByteBuffer FileHandle::read() const
|
||||
{
|
||||
return m_vnode->fileSystem()->readInode(m_vnode->inode);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue