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

Method from_raw

rust/src/variable.rs:30–39  ·  view source on GitHub ↗
(value: &BNDataVariable)

Source from the content-addressed store, hash-verified

28
29impl DataVariable {
30 pub(crate) fn from_raw(value: &BNDataVariable) -> Self {
31 Self {
32 address: value.address,
33 ty: Conf::new(
34 unsafe { Type::from_raw(value.type_).to_owned() },
35 value.typeConfidence,
36 ),
37 auto_discovered: value.autoDiscovered,
38 }
39 }
40
41 pub(crate) fn from_owned_raw(value: BNDataVariable) -> Self {
42 let owned = Self::from_raw(&value);

Callers

nothing calls this directly

Calls 4

raw_to_stringFunction · 0.85
mapMethod · 0.80
to_ownedMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected