Skip to main content

check_buffer_compatibility

Function check_buffer_compatibility 

Source
fn check_buffer_compatibility<T: Element>(
    buf: *mut c_void,
    itemsize: usize,
    format: &CStr,
) -> PyResult<()>
Available on Py_3_11 or non-Py_LIMITED_API only.
Expand description

Check that a buffer is compatible with element type T.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here