btck_transaction_to_bytes

Function btck_transaction_to_bytes 

Source
pub unsafe extern "C" fn btck_transaction_to_bytes(
    transaction: *const btck_Transaction,
    writer: btck_WriteBytes,
    user_data: *mut c_void,
) -> c_int
Expand description

@brief Serializes the transaction through the passed in callback to bytes. This is consensus serialization that is also used for the P2P network.

@param[in] transaction Non-null. @param[in] writer Non-null, callback to a write bytes function. @param[in] user_data Holds a user-defined opaque structure that will be passed back through the writer callback. @return 0 on success.