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();
let segment_flags = SegmentFlags::new().writable(true).readable(true);
bv.add_segment(Segment::builder(0..0x1000).flags(segment_flags))
pub fn address_range(&self) -> Range<u64>
pub fn parent_backing(&self) -> Option<Range<u64>>
pub fn flags(&self) -> SegmentFlags
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 ToOwned for Segment
impl ToOwned for Segment
impl Eq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
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