DatagramInputFile
from panda3d.core import DatagramInputFile
- class DatagramInputFile
Bases:
DatagramGenerator
This class can be used to read a binary file that consists of an arbitrary header followed by a number of datagrams.
Inheritance diagram
- __init__(*args, **kwargs)
- close()
C++ Interface: close(const DatagramInputFile self)
- /**
Closes the file. This is also implicitly done when the DatagramInputFile
destructs.
*/
- getStream()
C++ Interface: get_stream(const DatagramInputFile self)
- /**
Returns the istream represented by the input file.
*/
- get_stream()
C++ Interface: get_stream(const DatagramInputFile self)
- /**
Returns the istream represented by the input file.
*/
- open()
C++ Interface: open(const DatagramInputFile self, istream in, const Filename filename) open(const DatagramInputFile self, const FileReference file) open(const DatagramInputFile self, const Filename filename)
- /**
Opens the indicated filename for reading. Returns true on success, false
on failure.
*/
- /**
Opens the indicated filename for reading. Returns true on success, false
on failure.
*/
- /**
Starts reading from the indicated stream. Returns true on success, false
on failure. The DatagramInputFile does not take ownership of the stream;
you are responsible for closing or deleting it when you are done.
*/