BinaryNinja::Segment Class Reference

Public Member Functions

 Segment (BNSegment *seg)
 
uint64_t GetStart () const
 
uint64_t GetLength () const
 
uint64_t GetEnd () const
 
uint64_t GetDataEnd () const
 
uint64_t GetDataOffset () const
 
uint64_t GetDataLength () const
 
uint32_t GetFlags () const
 
bool IsAutoDefined () const
 
std::vector< std::pair< uint64_t, uint64_t > > GetRelocationRanges () const
 
std::vector< std::pair< uint64_t, uint64_t > > GetRelocationRangesAtAddress (uint64_t addr) const
 
std::vector< Ref< Relocation > > GetRelocationsInRange (uint64_t addr, uint64_t size) const
 
uint64_t GetRelocationsCount () const
 
void SetStart (uint64_t newSegmentBase)
 
void SetLength (uint64_t length)
 
void SetDataOffset (uint64_t dataOffset)
 
void SetDataLength (uint64_t dataLength)
 
void SetFlags (uint32_t flags)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNSegment, BNNewSegmentReference, BNFreeSegment >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNSegment * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNSegment, BNNewSegmentReference, BNFreeSegment >
static BNSegment * GetObject (CoreRefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNSegment, BNNewSegmentReference, BNFreeSegment >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNSegment * m_object
 

Constructor & Destructor Documentation

◆ Segment()

Segment::Segment ( BNSegment *  seg)

Member Function Documentation

◆ GetDataEnd()

uint64_t Segment::GetDataEnd ( ) const

◆ GetDataLength()

uint64_t Segment::GetDataLength ( ) const

◆ GetDataOffset()

uint64_t Segment::GetDataOffset ( ) const

◆ GetEnd()

uint64_t Segment::GetEnd ( ) const

◆ GetFlags()

uint32_t Segment::GetFlags ( ) const

◆ GetLength()

uint64_t Segment::GetLength ( ) const

◆ GetRelocationRanges()

vector< pair< uint64_t, uint64_t > > Segment::GetRelocationRanges ( ) const

◆ GetRelocationRangesAtAddress()

vector< pair< uint64_t, uint64_t > > Segment::GetRelocationRangesAtAddress ( uint64_t  addr) const

◆ GetRelocationsCount()

uint64_t Segment::GetRelocationsCount ( ) const

◆ GetRelocationsInRange()

std::vector< Ref< Relocation > > BinaryNinja::Segment::GetRelocationsInRange ( uint64_t  addr,
uint64_t  size 
) const

◆ GetStart()

uint64_t Segment::GetStart ( ) const

◆ IsAutoDefined()

bool Segment::IsAutoDefined ( ) const

◆ SetDataLength()

void Segment::SetDataLength ( uint64_t  dataLength)

◆ SetDataOffset()

void Segment::SetDataOffset ( uint64_t  dataOffset)

◆ SetFlags()

void Segment::SetFlags ( uint32_t  flags)

◆ SetLength()

void Segment::SetLength ( uint64_t  length)

◆ SetStart()

void BinaryNinja::Segment::SetStart ( uint64_t  newSegmentBase)

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