Function c_str_to_bytes

Source
pub(crate) unsafe fn c_str_to_bytes(ptr: *mut c_char) -> SzResult<Vec<u8>>
Expand description

Converts C string to raw bytes for handle storage

ยงSafety

The caller must ensure that ptr is either null or points to a valid null-terminated C string that can be safely freed with Sz_free.