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

Method from_raw

rust/src/lib.rs:453–461  ·  view source on GitHub ↗
(value: &BNVersionInfo)

Source from the content-addressed store, hash-verified

451
452impl VersionInfo {
453 pub(crate) fn from_raw(value: &BNVersionInfo) -> Self {
454 Self {
455 major: value.major,
456 minor: value.minor,
457 build: value.build,
458 // NOTE: Because of plugin manager the channel might not be filled.
459 channel: raw_to_string(value.channel).unwrap_or_default(),
460 }
461 }
462
463 pub(crate) fn from_owned_raw(value: BNVersionInfo) -> Self {
464 let owned = Self::from_raw(&value);

Callers

nothing calls this directly

Calls 1

raw_to_stringFunction · 0.85

Tested by

no test coverage detected