[][src]Function qpid_proton_sys::pn_message_encode

pub unsafe extern "C" fn pn_message_encode(
    msg: *mut pn_message_t,
    bytes: *const c_char,
    size: *mut usize
) -> i64

Encode a message as AMQP formatted binary data. If the buffer space provided is insufficient to store the content held in the message, the operation will fail and return a PN_OVERFLOW error code.