use crate::raw;
use crate::MAX_LEN_OUT;
#[cfg(any(feature = "lock", doc))]
use {crate::SpiceLock, spice_derive::impl_for};
#[cfg_attr(any(feature = "lock", doc), impl_for(SpiceLock))]
pub fn bodc2n(code: i32) -> (String, bool) {
raw::bodc2n(code, MAX_LEN_OUT as i32)
}
#[cfg_attr(any(feature = "lock", doc), impl_for(SpiceLock))]
pub fn timout(et: f64, pictur: &str) -> String {
raw::timout(et, pictur, pictur.len())
}
#[cfg_attr(any(feature = "lock", doc), impl_for(SpiceLock))]
pub fn dskp02(handle: i32, dladsc: raw::DLADSC) -> Vec<[i32; 3]> {
let (_, np) = raw::dskz02(handle, dladsc);
raw::dskp02(handle, dladsc, 1, np).1
}
#[cfg_attr(any(feature = "lock", doc), impl_for(SpiceLock))]
pub fn dskv02(handle: i32, dladsc: raw::DLADSC) -> Vec<[f64; 3]> {
let (nv, _) = raw::dskz02(handle, dladsc);
raw::dskv02(handle, dladsc, 1, nv).1
}
#[cfg_attr(any(feature = "lock", doc), impl_for(SpiceLock))]
pub fn kdata(which: i32, kind: &str) -> (String, String, String, i32, bool) {
raw::kdata(
which,
kind,
MAX_LEN_OUT as i32,
MAX_LEN_OUT as i32,
MAX_LEN_OUT as i32,
)
}