MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyByteArray_AS_STRING

Function PyByteArray_AS_STRING

python27-sys/src/bytearrayobject.rs:47–52  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

45
46#[inline(always)]
47pub unsafe fn PyByteArray_AS_STRING(o: *mut PyObject) -> *mut c_char {
48 PyByteArray_AsString(o)
49 // #define PyByteArray_AS_STRING(self) \
50 // (assert(PyByteArray_Check(self)), \
51 // Py_SIZE(self) ? ((PyByteArrayObject *)(self))->ob_bytes : _PyByteArray_empty_string)
52}
53
54#[inline(always)]
55pub unsafe fn PyByteArray_GET_SIZE(o: *mut PyObject) -> Py_ssize_t {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected