pub unsafe extern "C" fn btck_script_pubkey_to_bytes(
script_pubkey: *const btck_ScriptPubkey,
writer: btck_WriteBytes,
user_data: *mut c_void,
) -> c_intExpand description
@brief Serializes the script pubkey through the passed in callback to bytes.
@param[in] script_pubkey 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.