Skip to main content

repatch_value

Function repatch_value 

Source
pub fn repatch_value(
    code: &mut [u8],
    data: CodeLocationData,
    value: u64,
) -> Result<(), AsmError>
Expand description

Writes value into the immediate at data. Fails with AsmError::TooLarge when value does not fit the field.