Go to the documentation of this file.
77 char *new_buffer =
new char[size+offset];
static Size copy(void *dest, const void *src, Size count)
Copy memory from one place to another.
Size length() const
Same as count().
static void * set(void *dest, int ch, unsigned count)
Fill memory with a constant byte.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read bytes from the file.
Represents a file present on a FileSystem.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Write bytes to the file.
FileSystem::FileModes m_access
Access permissions.
Size m_size
Size of the file, in bytes.
Abstract Input/Output buffer.
#define NULL
NULL means zero.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
char * m_buffer
Buffer from which we read.
PseudoFile(const u32 inode)
Default constructor.
virtual ~PseudoFile()
Destructor.
#define assert(exp)
Insert program diagnostics.
Result
Result code for filesystem Actions.
FileSystem::Result read(void *buffer, const Size size, const Size offset=ZERO)
Read bytes from the I/O buffer.
FileSystem::Result write(const void *buffer, const Size size, const Size offset=ZERO)
Write bytes to the I/O buffer.