| 1 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::objectrust-analyzer cargo pyo3-ffi 0.28.2 object/::*; |
| 2 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::pyportrust-analyzer cargo pyo3-ffi 0.28.2 pyport/::Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#; |
| 3 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::{c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#}; |
| 4 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!; |
| 5 | |
| 6 | // skipped _PyManagedBuffer_Type |
| 7 | |
| 8 | #[cfg_attr(windows, link(name = "pythonXY"))] |
| 9 | extern "C" { |
| 10 | #[cfg_attr(PyPy, link_name = "PyPyMemoryView_Type")] |
| 11 | pub static mut PyMemoryView_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyMemoryView_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#; |
| 12 | } |
| 13 | |
| 14 | #[inline] |
| 15 | pub unsafe fn PyMemoryView_Checkrust-analyzer cargo pyo3-ffi 0.28.2 memoryobject/PyMemoryView_Check().(op: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# { |
| 16 | (Py_TYPErust-analyzer cargo pyo3-ffi 0.28.2 object/Py_TYPE().(op) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq().addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!!(PyMemoryView_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyMemoryView_Type.)) as c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# |
| 17 | } |
| 18 | |
| 19 | // skipped non-limited PyMemoryView_GET_BUFFER |
| 20 | // skipped non-limited PyMemoryView_GET_BASE |
| 21 | |
| 22 | extern "C" { |
| 23 | #[cfg_attr(PyPy, link_name = "PyPyMemoryView_FromObject")] |
| 24 | pub fn PyMemoryView_FromObjectrust-analyzer cargo pyo3-ffi 0.28.2 PyMemoryView_FromObject().(base: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 25 | #[cfg_attr(PyPy, link_name = "PyPyMemoryView_FromMemory")] |
| 26 | pub fn PyMemoryView_FromMemoryrust-analyzer cargo pyo3-ffi 0.28.2 PyMemoryView_FromMemory().( |
| 27 | mem: *mut c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, |
| 28 | size: Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#, |
| 29 | flags: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, |
| 30 | ) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 31 | #[cfg(any(Py_3_11, not(Py_LIMITED_API)))] |
| 32 | #[cfg_attr(PyPy, link_name = "PyPyMemoryView_FromBuffer")] |
| 33 | pub fn PyMemoryView_FromBuffer(view: *const craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::Py_buffer) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 34 | #[cfg_attr(PyPy, link_name = "PyPyMemoryView_GetContiguous")] |
| 35 | pub fn PyMemoryView_GetContiguousrust-analyzer cargo pyo3-ffi 0.28.2 PyMemoryView_GetContiguous().( |
| 36 | base: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, |
| 37 | buffertype: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, |
| 38 | order: c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, |
| 39 | ) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 40 | } |
| 41 | |
| 42 | // skipped remainder of file with comment: |
| 43 | /* The structs are declared here so that macros can work, but they shouldn't |
| 44 | be considered public. Don't access their fields directly, use the macros |
| 45 | and functions instead! */ |