use crate::{c_api, Nc, NcPlane, NcPlaneOptions};
#[allow(dead_code)]
pub(crate) unsafe fn ncplane_new_test<'a>(
nc: &mut Nc,
y: i32,
x: i32,
rows: u32,
cols: u32,
) -> &'a mut NcPlane {
&mut *c_api::ncpile_create(nc, &NcPlaneOptions::new(y, x, rows, cols))
}
#[allow(dead_code)]
pub(crate) unsafe fn ncplane_new_bound_test<'a>(
plane: &mut NcPlane,
y: i32,
x: i32,
rows: u32,
cols: u32,
) -> &'a mut NcPlane {
&mut *c_api::ncplane_create(plane, &NcPlaneOptions::new(y, x, rows, cols))
}