Skip to main content

releasebufferproc

Function releasebufferproc 

Source
pub unsafe extern "C" fn releasebufferproc<Meth: MethodDef<Func>>(
    slf: *mut PyObject,
    buf: *mut Py_buffer,
)
Available on non-Py_LIMITED_API or Py_3_11 only.
Expand description

Releasebufferproc is a special case where the function cannot return an error, so we use trampoline_unraisable.

§Safety

  • It must be sound to call the method with slf and buf
  • Interpreter must be attached
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here