Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7b8e2819
Commit
7b8e2819
authored
Jan 19, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF bug #670229: doc improvement for cStringIO.h
Gernot Hillier added more detail to the internal API documentation.
parent
9543b340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
Include/cStringIO.h
Include/cStringIO.h
+12
-5
No files found.
Include/cStringIO.h
View file @
7b8e2819
...
@@ -26,22 +26,29 @@ extern "C" {
...
@@ -26,22 +26,29 @@ extern "C" {
static
struct
PycStringIO_CAPI
{
static
struct
PycStringIO_CAPI
{
/* Read a string. If the last argument is -1, the remainder will be read. */
/* Read a string from an input object. If the last argument
is -1, the remainder will be read.
*/
int
(
*
cread
)(
PyObject
*
,
char
**
,
int
);
int
(
*
cread
)(
PyObject
*
,
char
**
,
int
);
/* Read a line */
/* 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).
*/
int
(
*
creadline
)(
PyObject
*
,
char
**
);
int
(
*
creadline
)(
PyObject
*
,
char
**
);
/* Write a string */
/* Write a string
to an output object
*/
int
(
*
cwrite
)(
PyObject
*
,
char
*
,
int
);
int
(
*
cwrite
)(
PyObject
*
,
char
*
,
int
);
/* Get the
cStringIO object as a Python string
*/
/* Get the
output object as a Python string (returns new reference).
*/
PyObject
*
(
*
cgetvalue
)(
PyObject
*
);
PyObject
*
(
*
cgetvalue
)(
PyObject
*
);
/* Create a new output object */
/* Create a new output object */
PyObject
*
(
*
NewOutput
)(
int
);
PyObject
*
(
*
NewOutput
)(
int
);
/* Create an input object from a Python string */
/* Create an input object from a Python string
(copies the Python string reference).
*/
PyObject
*
(
*
NewInput
)(
PyObject
*
);
PyObject
*
(
*
NewInput
)(
PyObject
*
);
/* The Python types for cStringIO input and output objects.
/* The Python types for cStringIO input and output objects.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment