Function String_FromRawArray
Source pub unsafe fn String_FromRawArray(buffer: &mut [c_char]) -> cc_string
Expand description
Constructs a string from a compile time array, that may have arbitary actual length of data at runtime
§Safety
The buffer needs to live longer than the cc_string.
§Panics
The function will panic if buffer.len() is outside the range of c_int.