summaryrefslogblamecommitdiff
path: root/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h
blob: 142d76332d974767e467058141e9a7bbd361ecc9 (plain) (tree)


















                                                                                            
#ifndef DEF_RAMFILENODE_CLASS_H
#define DEF_RAMFILENODE_CLASS_H

#include <VFS/FileNode.class.h>

class RamFileNode : public FileNode {
	friend class RamFS;

	private:
	RamFileNode (String name, FileSystem* fs, FSNode* parent, u32int permissions = 0777,
			u32int uid = 0, u32int gid = 0) :
		FileNode(name, fs, parent, 0, permissions, uid, gid), m_data(0) {}

	u8int *m_data;

	void setLength(u32int length) { m_length = length; }
};

#endif