class SubfileInfo

This class records a particular byte sub-range within an existing file on disk. Generally, the filename is understood as a physical file on disk, and not to be looked up via the vfs.

Inheritance diagram

Inheritance diagram of SubfileInfo

explicit SubfileInfo(FileReference const *file, std::streamoff start, std::streamsize size)
explicit SubfileInfo(Filename const &filename, std::streamoff start, std::streamsize size)
SubfileInfo(SubfileInfo const &copy)
FileReference const *get_file(void) const

Returns the FileReference that represents this file.

Filename const &get_filename(void) const

A shortcut to the filename.

std::streamsize get_size(void) const

Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.

std::streamoff get_start(void) const

Returns the offset within the file at which this file data begins.

bool is_empty(void) const

Returns true if this SubfileInfo doesn’t define any file, false if it has real data.

void output(std::ostream &out) const