25class EXPCL_PANDA_EXPRESS Ramfile {
29 INLINE
void seek(
size_t pos);
30 INLINE
size_t tell()
const;
31 EXTENSION(PyObject *
read(
size_t length));
33 EXTENSION(PyObject *readlines());
35 EXTENSION(PyObject *
get_data()
const);
40 std::string
read(
size_t length);
42 INLINE
const std::string &
get_data()
const;
The default class template does not define any methods.
void clear()
Empties the current buffer contents.
size_t tell() const
Returns the current data pointer position as a byte offset from the beginning of the stream.
void seek(size_t pos)
Moves the data pointer to the indicated byte position.
size_t get_data_size() const
Returns the size of the entire buffer contents.
std::string readline()
Assumes the stream represents a text file, and extracts one line up to and including the trailing new...
std::string read(size_t length)
Extracts and returns the indicated number of characters from the current data pointer,...
const std::string & get_data() const
Returns the entire buffer contents as a string, regardless of the current data pointer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.