Struct binaryninja::segment::Segment
source · pub struct Segment { /* private fields */ }
Implementations§
source§impl Segment
impl Segment
sourcepub fn builder(ea_range: Range<u64>) -> SegmentBuilder
pub fn builder(ea_range: Range<u64>) -> SegmentBuilder
You need to create a segment builder, customize that segment, then add it to a binary view:
let bv = binaryninja::load("example").unwrap();
bv.add_segment(Segment::builder(0..0x1000).writable(true).readable(true))
pub fn address_range(&self) -> Range<u64>
pub fn parent_backing(&self) -> Option<Range<u64>>
pub fn executable(&self) -> bool
pub fn writable(&self) -> bool
pub fn readable(&self) -> bool
pub fn contains_data(&self) -> bool
pub fn contains_code(&self) -> bool
pub fn deny_write(&self) -> bool
pub fn deny_execute(&self) -> bool
pub fn auto_defined(&self) -> bool
Trait Implementations§
source§impl CoreArrayProvider for Segment
impl CoreArrayProvider for Segment
source§impl PartialEq for Segment
impl PartialEq for Segment
source§impl ToOwned for Segment
impl ToOwned for Segment
impl Eq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl RefUnwindSafe for Segment
impl !Send for Segment
impl !Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more