(value: &BNDataVariable)
| 28 | |
| 29 | impl 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); |
nothing calls this directly
no test coverage detected