Trait swiss_army_knife::strings::CStringExt
source · [−]pub trait CStringExt {
fn from_fixed_length_buffer_ascii_nul_terminated(
buffer: Vec<c_char>
) -> CString;
fn from_fixed_length_buffer_optionally_ascii_nul_terminated(
buffer: Vec<c_char>
) -> CString;
}
Expand description
CString extensions.
Required Methods
fn from_fixed_length_buffer_ascii_nul_terminated(buffer: Vec<c_char>) -> CString
fn from_fixed_length_buffer_ascii_nul_terminated(buffer: Vec<c_char>) -> CString
From a fixed length buffer, where the string is always terminated by an ASCII NUL.
fn from_fixed_length_buffer_optionally_ascii_nul_terminated(
buffer: Vec<c_char>
) -> CString
fn from_fixed_length_buffer_optionally_ascii_nul_terminated(
buffer: Vec<c_char>
) -> CString
From a fixed length buffer, where the string is not terminated by an ASCII NUL if it occupies the entire buffer.