Name
PyString_AS_STRING
Synopsis
char* PyString_AS_STRING(PyObject* x
)
Returns a pointer to the internal buffer of string
x
, very fast, without error checking. 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.