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

Function PyMemoryView_GET_BUFFER

python27-sys/src/memoryobject.rs:18–20  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

16
17#[inline(always)]
18pub unsafe fn PyMemoryView_GET_BUFFER(op: *mut PyObject) -> *mut Py_buffer {
19 &mut (*(op as *mut PyMemoryViewObject)).view
20}
21
22#[inline(always)]
23pub unsafe fn PyMemoryView_GET_BASE(op: *mut PyObject) -> *mut PyObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected