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
Type: PyObject*

string or Unicode object

s
Type: char**

pointer to buffer variable

len
Type: Py_ssize_t*

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

Meta