Function bytes_to_cstr

Source
fn bytes_to_cstr(buf: &[u8]) -> Result<&CStr>
Expand description

Converts a byte buffer to a CStr without validating path components.

Use bytes_to_path_component instead if the input is a path component.