iop_sdk_ffi/ffi/
mod.rs

1pub(crate) mod convert;
2mod cres;
3mod cslice;
4
5use super::*;
6
7use std::ffi;
8use std::ptr::null_mut;
9
10pub(crate) use {cres::*, cslice::*};
11
12pub(crate) fn delete<T>(t: *mut T) {
13    let tbox_opt = unsafe { convert::move_in_opt(t) };
14    if let Some(tbox) = tbox_opt {
15        drop(tbox); // NOTE redundant, but clearer than let _t = ...;
16    }
17}