Panda3D
Public Member Functions | List of all members
SubfileInfo Class Reference

This class records a particular byte sub-range within an existing file on disk. More...

Public Member Functions

 __init__ ()
 
 __init__ (const FileReference file, Streamoff start, Streamsize size)
 
 __init__ (const Filename filename, Streamoff start, Streamsize size)
 
 __init__ (const SubfileInfo copy)
 
const FileReference getFile ()
 Returns the FileReference that represents this file. More...
 
const Filename getFilename ()
 A shortcut to the filename. More...
 
Streamsize getSize ()
 Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data. More...
 
Streamoff getStart ()
 Returns the offset within the file at which this file data begins. More...
 
bool isEmpty ()
 Returns true if this SubfileInfo doesn't define any file, false if it has real data. More...
 
SubfileInfo operator= (const SubfileInfo copy)
 
 output (Ostream out)
 

Detailed Description

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.

Member Function Documentation

◆ __init__() [1/4]

__init__ ( )

◆ __init__() [2/4]

__init__ ( const FileReference  file,
Streamoff  start,
Streamsize  size 
)

◆ __init__() [3/4]

__init__ ( const Filename  filename,
Streamoff  start,
Streamsize  size 
)

◆ __init__() [4/4]

__init__ ( const SubfileInfo  copy)

◆ getFile()

const FileReference getFile ( )

Returns the FileReference that represents this file.

◆ getFilename()

const Filename getFilename ( )

A shortcut to the filename.

◆ getSize()

Streamsize getSize ( )

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

◆ getStart()

Streamoff getStart ( )

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

◆ isEmpty()

bool isEmpty ( )

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

◆ operator=()

SubfileInfo operator= ( const SubfileInfo  copy)

◆ output()

output ( Ostream  out)