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

Function PyMemoryView_Check

python27-sys/src/memoryobject.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 PyMemoryView_Check(op: *mut PyObject) -> c_int {
13 let u: *mut PyTypeObject = &mut PyMemoryView_Type;
14 (Py_TYPE(op) == u) as c_int
15}
16
17#[inline(always)]
18pub unsafe fn PyMemoryView_GET_BUFFER(op: *mut PyObject) -> *mut Py_buffer {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected