Panda3D
|
This class records a particular byte sub-range within an existing file on disk. More...
#include "subfileInfo.h"
Public Member Functions | |
SubfileInfo (const Filename &filename, std::streampos start, std::streamsize size) | |
SubfileInfo (const FileReference *file, std::streampos start, std::streamsize size) | |
SubfileInfo (const SubfileInfo ©) | |
const FileReference * | get_file () const |
Returns the FileReference that represents this file. | |
const Filename & | get_filename () const |
A shortcut to the filename. | |
std::streamsize | get_size () const |
Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data. | |
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. | |
void | operator= (const SubfileInfo ©) |
void | output (std::ostream &out) const |
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.
Definition at line 26 of file subfileInfo.h.
|
inline |
Definition at line 17 of file subfileInfo.I.
|
inlineexplicit |
Definition at line 27 of file subfileInfo.I.
|
inlineexplicit |
Definition at line 38 of file subfileInfo.I.
|
inline |
Definition at line 49 of file subfileInfo.I.
|
inline |
Returns the FileReference that represents this file.
Definition at line 79 of file subfileInfo.I.
|
inline |
A shortcut to the filename.
Definition at line 87 of file subfileInfo.I.
Referenced by DatagramOutputFile::copy_datagram().
|
inline |
Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.
Definition at line 108 of file subfileInfo.I.
Referenced by DatagramOutputFile::copy_datagram().
|
inline |
Returns the offset within the file at which this file data begins.
Definition at line 99 of file subfileInfo.I.
Referenced by DatagramOutputFile::copy_datagram().
|
inline |
Returns true if this SubfileInfo doesn't define any file, false if it has real data.
Definition at line 71 of file subfileInfo.I.
Referenced by MovieVideo::write_datagram().
|
inline |
Definition at line 60 of file subfileInfo.I.
void SubfileInfo::output | ( | std::ostream & | out | ) | const |
Definition at line 19 of file subfileInfo.cxx.