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

Function PyObject_CheckBuffer

python3-sys/src/objectabstract.rs:90–93  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

88#[cfg(all(not(Py_LIMITED_API), not(Py_3_9)))]
89#[inline]
90pub unsafe fn PyObject_CheckBuffer(o: *mut PyObject) -> c_int {
91 let tp_as_buffer = (*(*o).ob_type).tp_as_buffer;
92 (!tp_as_buffer.is_null() && (*tp_as_buffer).bf_getbuffer.is_some()) as c_int
93}
94
95#[cfg_attr(windows, link(name = "pythonXY"))]
96extern "C" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected