5 releases
0.1.4 | Sep 16, 2022 |
---|---|
0.1.3 | Sep 14, 2022 |
0.1.2 | Sep 5, 2022 |
0.1.1 | Sep 5, 2022 |
0.1.0 | Sep 5, 2022 |
#14 in #c-str
223 downloads per month
Used in 8 crates
(2 directly)
18KB
366 lines
null-terminated-str
Provides null terminated utf-8 str NullTerminatedStr
(borrowed) and
NullTerminatedString
(owned) that is compatible with
std::ffi::CStr
std::ffi::CString
str
String
Also provides const_null_terminated_str!
to create NullTerminatedStr
at compile time and IntoNullTerminatedString
that accepts &str
,
String
, &NullTerminatedStr
and NullTerminatedString
to avoid
frequent allocation in FFI call.
Dependencies
~160KB