(o: *mut PyObject)
| 88 | #[cfg(all(not(Py_LIMITED_API), not(Py_3_9)))] |
| 89 | #[inline] |
| 90 | pub 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"))] |
| 96 | extern "C" { |
nothing calls this directly
no outgoing calls
no test coverage detected