mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
18 lines
286 B
C++
18 lines
286 B
C++
#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);
|
|
}
|
|
|