mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
17 lines
286 B
C++
17 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);
|
|
}
|
|
|