59 if (file !=
nullptr) {
62 static const Filename empty_filename;
63 return empty_filename;
get_filename
Returns the filename that provides the target for these datagrams, if any, or empty string if the dat...
virtual bool copy_datagram(SubfileInfo &result, const Filename &filename)
Copies the file data from the entire indicated file (via the vfs) as the next datagram.
get_file
Returns the FileReference that provides the target for these datagrams, if any, or NULL if the datagr...
virtual ~DatagramSink()
Does nothing since this is class is just the definition of an interface.
get_file_pos
Returns the current file position within the data stream, if any, or 0 if the file position is not me...
Keeps a reference-counted pointer to a file on disk.
const Filename & get_filename() const
Returns the filename of the reference.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.