MCPcopy Create free account
hub / github.com/PyO3/pyo3 / __releasebuffer__

Method __releasebuffer__

tests/test_buffer_protocol.rs:35–38  ·  view source on GitHub ↗
(&self, view: *mut ffi::Py_buffer)

Source from the content-addressed store, hash-verified

33 }
34
35 unsafe fn __releasebuffer__(&self, view: *mut ffi::Py_buffer) {
36 // Release memory held by the format string
37 drop(unsafe { CString::from_raw((*view).format) });
38 }
39}
40
41impl Drop for TestBufferClass {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected