SubfileInfo
from panda3d.core import SubfileInfo
- class SubfileInfo
Bases:
DTOOL_SUPER_BASE
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
- __init__(*args, **kwargs)
- assign()
C++ Interface: assign(const SubfileInfo self, const SubfileInfo copy)
- getFile()
C++ Interface: get_file(SubfileInfo self)
- /**
Returns the FileReference that represents this file.
*/
- getSize()
C++ Interface: get_size(SubfileInfo self)
- /**
Returns the number of consecutive bytes, beginning at get_start(), that
correspond to this file data.
*/
- getStart()
C++ Interface: get_start(SubfileInfo self)
- /**
Returns the offset within the file at which this file data begins.
*/
- get_file()
C++ Interface: get_file(SubfileInfo self)
- /**
Returns the FileReference that represents this file.
*/
- get_size()
C++ Interface: get_size(SubfileInfo self)
- /**
Returns the number of consecutive bytes, beginning at get_start(), that
correspond to this file data.
*/
- get_start()
C++ Interface: get_start(SubfileInfo self)
- /**
Returns the offset within the file at which this file data begins.
*/
- isEmpty()
C++ Interface: is_empty(SubfileInfo self)
- /**
Returns true if this SubfileInfo doesn’t define any file, false if it has
real data.
*/