Function diplomat_runtime::writeable::diplomat_simple_writeable
source · #[no_mangle]
pub unsafe extern "C" fn diplomat_simple_writeable(
buf: *mut u8,
buf_size: usize,
) -> DiplomatWriteable
Expand description
Create an DiplomatWriteable
that can write to a fixed-length stack allocated u8
buffer.
Once done, this will append a null terminator to the written string.
§Safety
buf
must be a valid pointer to a region of memory that can hold atbuf_size
bytes