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

Function PyString_GET_SIZE

python27-sys/src/stringobject.rs:39–41  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

37
38#[inline(always)]
39pub unsafe fn PyString_GET_SIZE(op: *mut PyObject) -> Py_ssize_t {
40 (*(op as *mut PyStringObject)).ob_size
41}
42
43#[inline(always)]
44pub unsafe fn PyString_AS_STRING(op: *mut PyObject) -> *mut c_char {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected