diplomat_simple_writeable

Function diplomat_simple_writeable 

Source
#[unsafe(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 at buf_size bytes