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

Method size

rust/src/low_level_il/expression.rs:463–477  ·  view source on GitHub ↗

Returns the size of the result of this expression If the expression is malformed or is `Unimpl` there is no meaningful size associated with the result.

(&self)

Source from the content-addressed store, hash-verified

461 /// If the expression is malformed or is `Unimpl` there
462 /// is no meaningful size associated with the result.
463 pub fn size(&self) -> Option<usize> {
464 use self::LowLevelILExpressionKind::*;
465
466 match *self {
467 Undef(..) | Unimpl(..) => None,
468
469 FlagCond(..) | FlagGroup(..) | CmpE(..) | CmpNe(..) | CmpSlt(..) | CmpUlt(..)
470 | CmpSle(..) | CmpUle(..) | CmpSge(..) | CmpUge(..) | CmpSgt(..) | CmpUgt(..) => {
471 Some(0)
472 }
473
474 _ => Some(self.raw_struct().size),
475 //TestBit(Operation<'func, A, M, F, operation::TestBit>), // TODO
476 }
477 }
478
479 pub fn address(&self) -> u64 {
480 self.raw_struct().address

Callers

nothing calls this directly

Calls 1

raw_structMethod · 0.80

Tested by

no test coverage detected