Skip to content

Commit 490ffa6

Browse files
committed
[Rust] Add BinaryViewExt::image_base
1 parent 7fce71c commit 490ffa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/src/binary_view.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,10 @@ pub trait BinaryViewExt: BinaryViewBase {
455455
unsafe { BNIsOffsetWritableSemantics(self.as_ref().handle, offset) }
456456
}
457457

458+
fn image_base(&self) -> u64 {
459+
unsafe { BNGetImageBase(self.as_ref().handle) }
460+
}
461+
458462
fn original_image_base(&self) -> u64 {
459463
unsafe { BNGetOriginalImageBase(self.as_ref().handle) }
460464
}

0 commit comments

Comments
 (0)