Name
PyString_AsStringAndSize
Synopsis
int PyString_AsStringAndSize(PyObject*x
,char**buffer
,int*length
)
Puts a pointer to the internal buffer of string
x
in
*
buffer
, and
x
’s length in
*
length
. You must not
modify the buffer in any way, unless you just allocated it by calling
PyString_FromStringAndSize(NULL
,size
)
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.