Ramfile
from panda3d.core import Ramfile
- class Ramfile
Bases:
DTOOL_SUPER_BASE
An in-memory buffer specifically designed for downloading files to memory.
Inheritance diagram
- __init__(*args, **kwargs)
- getData()
C++ Interface: get_data(Ramfile self)
- /**
Returns the entire buffer contents as a string, regardless of the current
data pointer.
*/
- getDataSize()
C++ Interface: get_data_size(Ramfile self)
- /**
Returns the size of the entire buffer contents.
*/
- get_data()
C++ Interface: get_data(Ramfile self)
- /**
Returns the entire buffer contents as a string, regardless of the current
data pointer.
*/
- get_data_size()
C++ Interface: get_data_size(Ramfile self)
- /**
Returns the size of the entire buffer contents.
*/
- read()
C++ Interface: read(const Ramfile self, int length)
- /**
Extracts and returns the indicated number of characters from the current
data pointer, and advances the data pointer. If the data pointer exceeds
the end of the buffer, returns empty string.
The interface here is intentionally designed to be similar to that for
Python’s file.read() function.
*/
- readline()
C++ Interface: readline(const Ramfile self)
- /**
Assumes the stream represents a text file, and extracts one line up to and
including the trailing newline character. Returns empty string when the
end of file is reached.
The interface here is intentionally designed to be similar to that for
Python’s file.readline() function.
*/
- readlines()
C++ Interface: readlines(const Ramfile self)