Function String_FromRaw

Source
pub unsafe fn String_FromRaw(buffer: *mut c_char, capacity: c_int) -> cc_string
Expand description

Constructs a string from a (maybe null terminated) buffer.

ยงSafety

The buffer needs to live longer than the cc_string.