PyBytes_AsStringAndSize

  1. int PyBytes_AsStringAndSize(PyObject* obj, char** s, Py_ssize_t* len)
    version(Python_3_0_Or_Later)
    extern (C)
    int
    PyBytes_AsStringAndSize
  2. alias PyBytes_AsStringAndSize = PyString_AsStringAndSize

Parameters

obj PyObject*

string or Unicode object

s char**

pointer to buffer variable

len Py_ssize_t*

pointer to length variable or NULL (only possible for 0-terminated strings)

Meta