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

Function Py_SIZE

python27-sys/src/object.rs:41–43  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

39
40#[inline(always)]
41pub unsafe fn Py_SIZE(ob: *mut PyObject) -> Py_ssize_t {
42 (*(ob as *mut PyVarObject)).ob_size
43}
44
45pub type unaryfunc = unsafe extern "C" fn(arg1: *mut PyObject) -> *mut PyObject;
46pub type binaryfunc =

Callers 2

PyTuple_GET_SIZEFunction · 0.70
PyList_GET_SIZEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected