43 EXTENSION(
void set_data(PyObject *data));
50 INLINE
void set_data(
const std::string &data);
51 void set_data(
const unsigned char *data,
size_t size);
54 INLINE
void swap_data(vector_uchar &data);
The default class template does not define any methods.
Used by StringStream to implement an stream that reads from and/or writes to a memory buffer,...
size_t get_data_size()
Returns the number of characters available to be read from the data stream.
get_data
Returns the contents of the data stream as a string.
void clear_data()
Empties the buffer.
set_data
Replaces the contents of the data stream.
StringStream(const std::string &source)
This version of the constructor preloads the buffer with the indicated data.
void swap_data(vector_uchar &data)
Swaps the indicated buffer for the contents of the internal buffer.
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.