BinaryNinja::Structure Class Reference

Public Member Functions

 Structure (BNStructure *s)
 
std::vector< StructureMemberGetMembers () const
 
bool GetMemberByName (const std::string &name, StructureMember &result) const
 
bool GetMemberAtOffset (int64_t offset, StructureMember &result) const
 
bool GetMemberAtOffset (int64_t offset, StructureMember &result, size_t &idx) const
 
uint64_t GetWidth () const
 
size_t GetAlignment () const
 
bool IsPacked () const
 
bool IsUnion () const
 
BNStructureVariant GetStructureType () const
 
Ref< StructureWithReplacedStructure (Structure *from, Structure *to)
 
Ref< StructureWithReplacedEnumeration (Enumeration *from, Enumeration *to)
 
Ref< StructureWithReplacedNamedTypeReference (NamedTypeReference *from, NamedTypeReference *to)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNStructure, BNNewStructureReference, BNFreeStructure >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNStructure * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Structure()

Structure::Structure ( BNStructure *  s)

Member Function Documentation

◆ GetAlignment()

size_t Structure::GetAlignment ( ) const

◆ GetMemberAtOffset() [1/2]

bool Structure::GetMemberAtOffset ( int64_t  offset,
StructureMember result 
) const

◆ GetMemberAtOffset() [2/2]

bool Structure::GetMemberAtOffset ( int64_t  offset,
StructureMember result,
size_t &  idx 
) const

◆ GetMemberByName()

bool Structure::GetMemberByName ( const std::string &  name,
StructureMember result 
) const

◆ GetMembers()

vector< StructureMember > Structure::GetMembers ( ) const

◆ GetStructureType()

BNStructureVariant Structure::GetStructureType ( ) const

◆ GetWidth()

uint64_t Structure::GetWidth ( ) const

◆ IsPacked()

bool Structure::IsPacked ( ) const

◆ IsUnion()

bool Structure::IsUnion ( ) const

◆ WithReplacedEnumeration()

Ref< Structure > Structure::WithReplacedEnumeration ( Enumeration from,
Enumeration to 
)

◆ WithReplacedNamedTypeReference()

Ref< Structure > Structure::WithReplacedNamedTypeReference ( NamedTypeReference from,
NamedTypeReference to 
)

◆ WithReplacedStructure()

Ref< Structure > Structure::WithReplacedStructure ( Structure from,
Structure to 
)

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