IDAPython 9.0
Loading...
Searching...
No Matches
segment_t Class Reference

Proxy of C++ segment_t class.

Inheritance diagram for segment_t:
range_t

Public Member Functions

"bool" is_16bit (self)
 is_16bit(self) -> bool Is a 16-bit segment?
 
"bool" is_32bit (self)
 is_32bit(self) -> bool Is a 32-bit segment?
 
"bool" is_64bit (self)
 is_64bit(self) -> bool Is a 64-bit segment?
 
"int" abits (self)
 abits(self) -> int Get number of address bits.
 
"int" abytes (self)
 abytes(self) -> int Get number of address bytes.
 
"bool" comorg (self)
 comorg(self) -> bool
 
"void" set_comorg (self)
 set_comorg(self)
 
"void" clr_comorg (self)
 clr_comorg(self)
 
"bool" ob_ok (self)
 ob_ok(self) -> bool
 
"void" set_ob_ok (self)
 set_ob_ok(self)
 
"void" clr_ob_ok (self)
 clr_ob_ok(self)
 
"bool" is_visible_segm (self)
 is_visible_segm(self) -> bool
 
"void" set_visible_segm (self, "bool" visible)
 set_visible_segm(self, visible)
 
"void" set_debugger_segm (self, "bool" debseg)
 set_debugger_segm(self, debseg)
 
"bool" is_loader_segm (self)
 is_loader_segm(self) -> bool
 
"void" set_loader_segm (self, "bool" ldrseg)
 set_loader_segm(self, ldrseg)
 
"bool" is_hidden_segtype (self)
 is_hidden_segtype(self) -> bool
 
"void" set_hidden_segtype (self, "bool" hide)
 set_hidden_segtype(self, hide)
 
"bool" is_header_segm (self)
 is_header_segm(self) -> bool
 
"void" set_header_segm (self, "bool" on)
 set_header_segm(self, on)
 
"bool" update (self)
 update(self) -> bool Update segment information.
 
 __init__ (self)
 init(self) -> segment_t
 
- Public Member Functions inherited from range_t
"bool" __eq__ (self, "range_t" r)
 eq(self, r) -> bool
 
"bool" __ne__ (self, "range_t" r)
 ne(self, r) -> bool
 
"bool" __lt__ (self, "range_t" r)
 lt(self, r) -> bool
 
"bool" __gt__ (self, "range_t" r)
 gt(self, r) -> bool
 
"bool" __le__ (self, "range_t" r)
 le(self, r) -> bool
 
"bool" __ge__ (self, "range_t" r)
 ge(self, r) -> bool
 
"int" compare (self, "range_t" r)
 compare(self, r) -> int
 
"bool" contains (self, *args)
 contains(self, ea) -> bool Is every ea in 'r' also in this range_t?
 
"bool" overlaps (self, "range_t" r)
 overlaps(self, r) -> bool Is there an ea in 'r' that is also in this range_t?
 
"void" clear (self)
 clear(self) Set start_ea, end_ea to 0.
 
"bool" empty (self)
 empty(self) -> bool Is the size of the range_t <= 0?
 
"asize_t" size (self)
 size(self) -> asize_t Get end_ea - start_ea.
 
"void" intersect (self, "range_t" r)
 intersect(self, r) Assign the range_t to the intersection between the range_t and 'r'.
 
"void" extend (self, "ea_t" ea)
 extend(self, ea) Ensure that the range_t includes 'ea'.
 

Static Public Attributes

str name = property(_ida_segment.segment_t_name_get, _ida_segment.segment_t_name_set, doc=)
 
str sclass = property(_ida_segment.segment_t_sclass_get, _ida_segment.segment_t_sclass_set, doc=)
 
str orgbase = property(_ida_segment.segment_t_orgbase_get, _ida_segment.segment_t_orgbase_set, doc=)
 
str align = property(_ida_segment.segment_t_align_get, _ida_segment.segment_t_align_set, doc=)
 
str comb = property(_ida_segment.segment_t_comb_get, _ida_segment.segment_t_comb_set, doc=)
 
str perm = property(_ida_segment.segment_t_perm_get, _ida_segment.segment_t_perm_set, doc=)
 
str bitness = property(_ida_segment.segment_t_bitness_get, _ida_segment.segment_t_bitness_set, doc=)
 
str flags = property(_ida_segment.segment_t_flags_get, _ida_segment.segment_t_flags_set, doc=)
 
str sel = property(_ida_segment.segment_t_sel_get, _ida_segment.segment_t_sel_set, doc=)
 
str defsr = property(_ida_segment.segment_t_defsr_get, _ida_segment.segment_t_defsr_set, doc=!)
 
str type = property(_ida_segment.segment_t_type_get, _ida_segment.segment_t_type_set, doc=)
 
str color = property(_ida_segment.segment_t_color_get, _ida_segment.segment_t_color_set, doc=!)
 
str start_ea = property(_ida_segment.segment_t_start_ea_get, _ida_segment.segment_t_start_ea_set, doc=)
 
str end_ea = property(_ida_segment.segment_t_end_ea_get, _ida_segment.segment_t_end_ea_set, doc=)
 
"bool" use64 = is_64bit
 
- Static Public Attributes inherited from range_t
str start_ea = property(_ida_range.range_t_start_ea_get, _ida_range.range_t_start_ea_set, doc=)
 
str end_ea = property(_ida_range.range_t_end_ea_get, _ida_range.range_t_end_ea_set, doc=)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from range_t
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Additional Inherited Members

- Protected Member Functions inherited from range_t
"size_t" _print (self, *args)
 _print(self) -> size_t
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Reimplemented from range_t.

Member Function Documentation

◆ abits()

"int" abits ( self)

◆ abytes()

"int" abytes ( self)

◆ clr_comorg()

"void" clr_comorg ( self)

◆ clr_ob_ok()

"void" clr_ob_ok ( self)

◆ comorg()

"bool" comorg ( self)

◆ is_16bit()

"bool" is_16bit ( self)

◆ is_32bit()

"bool" is_32bit ( self)

◆ is_64bit()

"bool" is_64bit ( self)

◆ is_header_segm()

"bool" is_header_segm ( self)

◆ is_hidden_segtype()

"bool" is_hidden_segtype ( self)

◆ is_loader_segm()

"bool" is_loader_segm ( self)

◆ is_visible_segm()

"bool" is_visible_segm ( self)

◆ ob_ok()

"bool" ob_ok ( self)

◆ set_comorg()

"void" set_comorg ( self)

◆ set_debugger_segm()

"void" set_debugger_segm ( self,
"bool" debseg )
Parameters
debsegbool

◆ set_header_segm()

"void" set_header_segm ( self,
"bool" on )
Parameters
onbool

◆ set_hidden_segtype()

"void" set_hidden_segtype ( self,
"bool" hide )
Parameters
hidebool

◆ set_loader_segm()

"void" set_loader_segm ( self,
"bool" ldrseg )
Parameters
ldrsegbool

◆ set_ob_ok()

"void" set_ob_ok ( self)

◆ set_visible_segm()

"void" set_visible_segm ( self,
"bool" visible )
Parameters
visiblebool

◆ update()

"bool" update ( self)

You must call this function after modification of segment characteristics. Note that not all fields of segment structure may be modified directly, there are special functions to modify some fields.

Returns
: success

Member Data Documentation

◆ align

str align = property(_ida_segment.segment_t_align_get, _ida_segment.segment_t_align_set, doc=)
static

◆ bitness

str bitness = property(_ida_segment.segment_t_bitness_get, _ida_segment.segment_t_bitness_set, doc=)
static

◆ color

str color = property(_ida_segment.segment_t_color_get, _ida_segment.segment_t_color_set, doc=!)
static

◆ comb

str comb = property(_ida_segment.segment_t_comb_get, _ida_segment.segment_t_comb_set, doc=)
static

◆ defsr

defsr = property(_ida_segment.segment_t_defsr_get, _ida_segment.segment_t_defsr_set, doc=!)
static

◆ end_ea

str end_ea = property(_ida_segment.segment_t_end_ea_get, _ida_segment.segment_t_end_ea_set, doc=)
static

◆ flags

str flags = property(_ida_segment.segment_t_flags_get, _ida_segment.segment_t_flags_set, doc=)
static

◆ name

str name = property(_ida_segment.segment_t_name_get, _ida_segment.segment_t_name_set, doc=)
static

◆ orgbase

str orgbase = property(_ida_segment.segment_t_orgbase_get, _ida_segment.segment_t_orgbase_set, doc=)
static

◆ perm

str perm = property(_ida_segment.segment_t_perm_get, _ida_segment.segment_t_perm_set, doc=)
static

◆ sclass

str sclass = property(_ida_segment.segment_t_sclass_get, _ida_segment.segment_t_sclass_set, doc=)
static

◆ sel

str sel = property(_ida_segment.segment_t_sel_get, _ida_segment.segment_t_sel_set, doc=)
static

◆ start_ea

str start_ea = property(_ida_segment.segment_t_start_ea_get, _ida_segment.segment_t_start_ea_set, doc=)
static

◆ type

str type = property(_ida_segment.segment_t_type_get, _ida_segment.segment_t_type_set, doc=)
static

◆ use64

"bool" use64 = is_64bit
static

Property Documentation

◆ thisown

thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

The documentation for this class was generated from the following file: