Function xed_sys::xed_patch_brdisp

source ·
pub unsafe extern "C" fn xed_patch_brdisp(
    xedd: *mut xed_decoded_inst_t,
    itext: *mut u8,
    disp: xed_encoder_operand_t
) -> xed_bool_t
Expand description

Replace a relative/absolute branch displacement. The widths of original displacement and replacement must match. @param xedd A decoded instruction. @param itext The corresponding encoder output, byte array. @param disp A xed_encoder_operand_t object describing the new displacement. @returns xed_bool_t 1=success, 0=failure @ingroup ENCHLPATCH