Function bytes_to_string_vec
Source pub unsafe fn bytes_to_string_vec(ptr: *const c_char) -> Result<Vec<String>>
Expand description
Convert a C bytes pointer into an owned Vec<String>.
§Safety
Assumes ptr is a valid C string pointer.
§Errors
Returns an error if the string contains invalid UTF-8 or JSON, or is not an array of strings.
§Panics
Panics if ptr is null.