1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use crate::{Nc, NcDim, NcOffset, NcPlane, NcPlaneOptions};
#[allow(dead_code)]
pub(crate) unsafe fn ncplane_new_test<'a>(
nc: &mut Nc,
y: NcOffset,
x: NcOffset,
rows: NcDim,
cols: NcDim,
) -> &'a mut NcPlane {
&mut *crate::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: NcOffset,
x: NcOffset,
rows: NcDim,
cols: NcDim,
) -> &'a mut NcPlane {
&mut *crate::ncplane_create(plane, &NcPlaneOptions::new(y, x, rows, cols))
}