#[no_mangle]
pub extern "C" fn diplomat_buffer_writeable_create(
    cap: usize,
) -> *mut DiplomatWriteable
Expand description

Create an DiplomatWriteable that can write to a dynamically allocated buffer managed by Rust.

Use diplomat_buffer_writeable_destroy() to free the writable and its underlying buffer.