MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / from

Method from

rust/src/low_level_il/lifting.rs:54–67  ·  view source on GitHub ↗
(value: LowLevelILRegisterOrConstant<R>)

Source from the content-addressed store, hash-verified

52
53impl<R: ArchReg> From<LowLevelILRegisterOrConstant<R>> for BNRegisterOrConstant {
54 fn from(value: LowLevelILRegisterOrConstant<R>) -> Self {
55 match value {
56 LowLevelILRegisterOrConstant::Register(_, r) => Self {
57 constant: false,
58 reg: r.id().0,
59 value: 0,
60 },
61 LowLevelILRegisterOrConstant::Constant(_, value) => Self {
62 constant: true,
63 reg: 0,
64 value,
65 },
66 }
67 }
68}
69
70// TODO flesh way out

Callers

nothing calls this directly

Calls 2

idMethod · 0.45

Tested by

no test coverage detected