panda3d.core.SubfileInfo

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

__init__() → None
__init__(file: FileReference, start: streamoff, size: streamsize) → None
__init__(filename: Filename, start: streamoff, size: streamsize) → None
__init__(copy: SubfileInfo) → None
assign(copy: SubfileInfo) → SubfileInfo
Return type

SubfileInfo

getFile() → FileReference

Returns the FileReference that represents this file.

Return type

FileReference

getFilename() → Filename

A shortcut to the filename.

Return type

Filename

getSize() → streamsize

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

Return type

streamsize

getStart() → streamoff

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

Return type

streamoff

isEmpty() → bool

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

output(out: ostream) → None