mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 05:24:17 +00:00
Import all this stuff into a single repo called Serenity.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user