26class EXPCL_PANDA_EXPRESS SubfileInfo {
29 INLINE
explicit SubfileInfo(
const FileReference *file, std::streampos start, std::streamsize size);
30 INLINE
explicit SubfileInfo(
const Filename &filename, std::streampos start, std::streamsize size);
31 INLINE SubfileInfo(
const SubfileInfo ©);
32 INLINE
void operator = (
const SubfileInfo ©);
39 INLINE std::streamsize
get_size()
const;
41 void output(std::ostream &out)
const;
45 std::streampos _start;
46 std::streamsize _size;
49INLINE std::ostream &operator << (std::ostream &out,
const SubfileInfo &info);
Keeps a reference-counted pointer to a file on disk.
The name of a file, such as a texture file or an Egg file.
This class records a particular byte sub-range within an existing file on disk.
const Filename & get_filename() const
A shortcut to the filename.
const FileReference * get_file() const
Returns the FileReference that represents this file.
std::streampos get_start() const
Returns the offset within the file at which this file data begins.
bool is_empty() const
Returns true if this SubfileInfo doesn't define any file, false if it has real data.
std::streamsize get_size() const
Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.