| Crates.io | null-terminated-str |
| lib.rs | null-terminated-str |
| version | 0.1.4 |
| created_at | 2022-09-05 10:37:18.17646+00 |
| updated_at | 2022-09-16 06:46:46.693008+00 |
| description | FFI-friendly utf-8 string, enabling const null-terminated str and caching of the non-terminated string to avoid frequent allocation. |
| homepage | |
| repository | https://github.com/NobodyXu/null-terminated-str |
| max_upload_size | |
| id | 658744 |
| size | 20,009 |
Provides null terminated utf-8 str NullTerminatedStr (borrowed) and
NullTerminatedString (owned) that is compatible with
std::ffi::CStrstd::ffi::CStringstrStringAlso 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.