blob: 85bff32fb93b21149379a303fd7444cfc97b5ce1 [file] [log] [blame]
use std::marker::PhantomData;
#[repr(C)]
struct TakeUntil<'a, const V: char>
{
marker: PhantomData<&'a str>,
start: *const u8,
len: usize,
point: usize,
}
#[no_mangle]
pub unsafe extern "C" fn until_nul(start: *const u8, len: usize) -> TakeUntil<'a, '\0'> {
TakeUntil {
marker: PhantomData,
start,
len,
point: 0,
}
}