Go to the documentation of this file.
18 #ifndef __LIB_LIBFS_STORAGE_H
19 #define __LIB_LIBFS_STORAGE_H
unsigned long long u64
Unsigned 64-bit number.
virtual FileSystem::Result write(const u64 offset, void *buffer, const Size size)
Write a contiguous set of data.
virtual ~Storage()
Destructor function.
unsigned int Size
Any sane size indicator cannot go negative.
virtual u64 capacity() const =0
Retrieve maximum storage capacity.
Storage()
Constructor function.
Result
Result code for filesystem Actions.
virtual FileSystem::Result read(const u64 offset, void *buffer, const Size size) const =0
Read a contiguous set of data.
Provides a storage device to build filesystems on top.
virtual FileSystem::Result initialize()=0
Initialize the Storage device.