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

Method from

rust/src/architecture.rs:141–154  ·  view source on GitHub ↗
(value: BranchInfo)

Source from the content-addressed store, hash-verified

139
140impl From<BranchInfo> for BNBranchType {
141 fn from(value: BranchInfo) -> Self {
142 match value.kind {
143 BranchKind::Unresolved => BNBranchType::UnresolvedBranch,
144 BranchKind::Unconditional(_) => BNBranchType::UnconditionalBranch,
145 BranchKind::False(_) => BNBranchType::FalseBranch,
146 BranchKind::True(_) => BNBranchType::TrueBranch,
147 BranchKind::Call(_) => BNBranchType::CallDestination,
148 BranchKind::FunctionReturn => BNBranchType::FunctionReturn,
149 BranchKind::SystemCall => BNBranchType::SystemCall,
150 BranchKind::Indirect => BNBranchType::IndirectBranch,
151 BranchKind::Exception => BNBranchType::ExceptionBranch,
152 BranchKind::UserDefined => BNBranchType::UserDefinedBranch,
153 }
154 }
155}
156
157impl From<BranchKind> for BranchInfo {

Callers

nothing calls this directly

Calls 5

mapMethod · 0.80
CallClass · 0.50
countMethod · 0.45
into_iterMethod · 0.45
targetMethod · 0.45

Tested by

no test coverage detected