asciiz

Crates.ioasciiz
lib.rsasciiz
version0.1.4
sourcesrc
created_at2023-05-06 05:26:29.373688
updated_at2023-05-06 12:11:17.397485
descriptionasciiz create buffer and copy bytes ends with 0u8
homepagehttps://crates.io/crates/asciiz
repositoryhttps://github.com/nomissbowling/asciiz
max_upload_size
id858337
size8,304
nomissbowling (nomissbowling)

documentation

https://docs.rs/asciiz/

README

asciiz

asciiz Rust crate create buffer and copy bytes ends with 0u8

Examples

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()) };

Samples

see also

License

MIT License

Commit count: 6

cargo fmt