| Crates.io | asciiz |
| lib.rs | asciiz |
| version | 0.1.4 |
| created_at | 2023-05-06 05:26:29.373688+00 |
| updated_at | 2023-05-06 12:11:17.397485+00 |
| description | asciiz create buffer and copy bytes ends with 0u8 |
| homepage | https://crates.io/crates/asciiz |
| repository | https://github.com/nomissbowling/asciiz |
| max_upload_size | |
| id | 858337 |
| size | 8,304 |
asciiz Rust crate create buffer and copy bytes ends with 0u8
use asciiz::u8z::U8zBuf;
let mut m = U8zBuf::from_u8array(b"bytesarray"); // to keep lifetime
let r = unsafe { c_function_requires_asciiz_const(m.as_i8p()) };
let s = unsafe { c_function_requires_asciiz_not_const(m.as_i8p_mut()) };
see also
MIT License