18#ifndef __LIB_LIBAPP_BUFFEREDFILE_H
19#define __LIB_LIBAPP_BUFFEREDFILE_H
65 const char *
path()
const;
72 const void *
buffer()
const;
Provides a buffered abstract interface to a file.
const Size size() const
Get file size.
Result write(const void *data, const Size size) const
Write the file (unbuffered)
Result read()
Read the file (buffered)
~BufferedFile()
Destructor.
const char * m_path
Path to the file.
const char * path() const
Get file path.
u8 * m_buffer
Stored contents of the file.
const void * buffer() const
Get file buffer.
Size m_size
Size of the file in bytes.
unsigned int Size
Any sane size indicator cannot go negative.
unsigned char u8
Unsigned 8-bit number.