The Python types for cStringIO input and output objects. Note that you can do input on an output object.
Create an input object from a Python string (copies the Python string reference).
Create a new output object
The Python types for cStringIO input and output objects. Note that you can do input on an output object.
Get the output object as a Python string (returns new reference).
Read a string from an input object. If the last argument is -1, the remainder will be read.
Read a line from an input object. Returns the length of the read line as an int and a pointer inside the object buffer as char** (so the caller doesn't have to provide its own buffer as destination).
Write a string to an output object
Basic functions to manipulate cStringIO objects from C Availability: 2.*