StringStream

from panda3d.core import StringStream
class StringStream

Bases: iostream

A bi-directional stream object that reads and writes data to an internal buffer, which can be retrieved and/or set as a string in Python 2 or a bytes object in Python 3.

Inheritance diagram

Inheritance diagram of StringStream

__init__(*args, **kwargs)
clearData()

C++ Interface: clear_data(const StringStream self)

/**
  • Empties the buffer.

*/

clear_data()

C++ Interface: clear_data(const StringStream self)

/**
  • Empties the buffer.

*/

data
getData()

C++ Interface: get_data(const StringStream self)

/**
  • Returns the contents of the data stream as a string.

*/

getDataSize()

C++ Interface: get_data_size(const StringStream self)

/**
  • Returns the number of characters available to be read from the data stream.

*/

get_data()

C++ Interface: get_data(const StringStream self)

/**
  • Returns the contents of the data stream as a string.

*/

get_data_size()

C++ Interface: get_data_size(const StringStream self)

/**
  • Returns the number of characters available to be read from the data stream.

*/

setData()

C++ Interface: set_data(const StringStream self, object data)

/**
  • Replaces the contents of the data stream. This implicitly reseeks to 0.

*/

/**
  • Replaces the contents of the data stream. This implicitly reseeks to 0.

*/

set_data()

C++ Interface: set_data(const StringStream self, object data)

/**
  • Replaces the contents of the data stream. This implicitly reseeks to 0.

*/

/**
  • Replaces the contents of the data stream. This implicitly reseeks to 0.

*/