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

Function PyBuffer_Check

python27-sys/src/bufferobject.rs:12–15  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

10
11#[inline(always)]
12pub unsafe fn PyBuffer_Check(op: *mut PyObject) -> c_int {
13 let u: *mut PyTypeObject = &mut PyBuffer_Type;
14 (Py_TYPE(op) == u) as c_int
15}
16
17pub const Py_END_OF_BUFFER: Py_ssize_t = -1;
18

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected