Crate measure_null_str

Crate measure_null_str 

Source
Expand description

Handle null-terminated strings with explicit length measurement.

Structs§

MeasuredNullTermStr
The more direct analog to ffi::CStr which explicitly knows the length of its string data.
NullTermStr
Similar to ffi::CStr, except that Self::from_ptr() does not implicitly perform a libc::strlen().
NullTermString
Owned version of MeasuredNullTermStr.

Traits§

AsNullTermStr
Allow NullTermString instances to be interpreted as references to MeasuredNullTermStr.