[][src]Function pulsar_sys::pulsar_message_set_allocated_content

pub unsafe extern "C" fn pulsar_message_set_allocated_content(
    message: *mut pulsar_message_t,
    data: *mut c_void,
    size: size_t
)

Set content of the message to a buffer already allocated by the caller. No copies of this buffer will be made. The caller is responsible to ensure the memory buffer is valid until the message has been persisted (or an error is returned).