(
slf: Bound<'_, Self>,
view: *mut ffi::Py_buffer,
flags: c_int,
)
| 25 | #[pymethods] |
| 26 | impl TestBufferClass { |
| 27 | unsafe fn __getbuffer__( |
| 28 | slf: Bound<'_, Self>, |
| 29 | view: *mut ffi::Py_buffer, |
| 30 | flags: c_int, |
| 31 | ) -> PyResult<()> { |
| 32 | unsafe { fill_view_from_readonly_data(view, flags, &slf.borrow().vec, slf.into_any()) } |
| 33 | } |
| 34 | |
| 35 | unsafe fn __releasebuffer__(&self, view: *mut ffi::Py_buffer) { |
| 36 | // Release memory held by the format string |
nothing calls this directly
no test coverage detected