pub fn operand_store(
        &self,
        block: &mut Block,
        operand: &cs_x86_op,
        value: Expression,
        instruction: &capstone::Instr,
    ) -> Result<()> {
        match operand.type_ {
            x86_op_type::X86_OP_INVALID => Err("operand_store called on invalid operand".into()),
            x86_op_type::X86_OP_IMM => Err("operand_store called on immediate operand".into()),
            x86_op_type::X86_OP_REG => {
                let dst_register = self.get_register(operand.reg())?;
                dst_register.set(block, value)
            }
            x86_op_type::X86_OP_MEM => {
                let address = self.operand_value(operand, instruction)?;
                block.store(address, value);
                Ok(())
            }
            #[cfg(not(feature = "capstone4"))]
            x86_op_type::X86_OP_FP => Err("operand_store called on fp operand".into()),
        }
    }
/// Stores a value in an operand, performing any stores as necessary.
Stores a value in an operand, performing any stores as necessary.
Stores a value in an operand performing any stores as necessary .
pub fn operand_store(
        &self,
        block: &mut Block,
        operand: &cs_x86_op,
        value: Expression,
        instruction: &capstone::Instr,
    ) -> Result<()> {
        match operand.type_ {
            x86_op_type::X86_OP_INVALID => Err("operand_store called on invalid operand".into()),
            x86_op_type::X86_OP_IMM => Err("operand_store called on immediate operand".into()),
            x86_op_type::X86_OP_REG => {
                let dst_register = self.get_register(operand.reg())?;
                dst_register.set(block, value)
            }
            x86_op_type::X86_OP_MEM => {
                let address = self.operand_value(operand, instruction)?;
                block.store(address, value);
                Ok(())
            }
            #[cfg(not(feature = "capstone4"))]
            x86_op_type::X86_OP_FP => Err("operand_store called on fp operand".into()),
        }
    }
pub fn operand_store ( & self , block : & mut Block , operand : & cs_x86_op , value : Expression , instruction : & capstone :: Instr , ) -> Result < ( ) > { match operand . type_ { x86_op_type :: X86_OP_INVALID => Err ( " " . into ( ) ) , x86_op_type :: X86_OP_IMM => Err ( " " . into ( ) ) , x86_op_type :: X86_OP_REG => { let dst_register = self . get_register ( operand . reg ( ) ) ? ; dst_register . set ( block , value ) } x86_op_type :: X86_OP_MEM => { let address = self . operand_value ( operand , instruction ) ? ; block . store ( address , value ) ; Ok ( ( ) ) } # [ cfg ( not ( feature " " ) ) ] x86_op_type :: X86_OP_FP => Err ( " " . into ( ) ) , } }
Stores a value in an operand, performing any stores as necessary.
Stores a value in an operand performing any stores as necessary .
&self
block
&mut Block
operand
&cs_x86_op
value
Expression
instruction
&capstone::Instr
&self
block
&mut Block
operand
&cs_x86_op
value
Expression
instruction
&capstone::Instr