join_in_buff

Function join_in_buff 

Source
pub fn join_in_buff<'a, const N: usize>(
    raw_buff: &'a mut [MaybeUninit<u8>],
    path_buff: &'a mut Option<PathBuf>,
    paths: [&Path; N],
) -> &'a Path
Expand description

Joins N paths. If the paths fit inside the given buffer, uses the buffer. Otherwise, uses the given pathbuff.

Returns a Path referencing whichever one was used.