LIEF: Library to Instrument Executable Formats Version 0.16.0
|
This represents a class/struct/union attribute. More...
#include <ClassLike.hpp>
Public Member Functions | |
Member (std::unique_ptr< details::Member > impl) | |
Member (Member &&other) noexcept | |
Member & | operator= (Member &&other) noexcept |
std::string | name () const |
Name of the member. | |
result< uint64_t > | offset () const |
Offset of the current member in the struct/union/class. | |
result< uint64_t > | bit_offset () const |
Offset of the current member in bits the struct/union/class. | |
std::unique_ptr< Type > | type () const |
Type of the current member. | |
bool | is_external () const |
bool | is_declaration () const |
~Member () | |
This represents a class/struct/union attribute.
LIEF::dwarf::types::ClassLike::Member::Member | ( | std::unique_ptr< details::Member > | impl | ) |
|
noexcept |
LIEF::dwarf::types::ClassLike::Member::~Member | ( | ) |
result< uint64_t > LIEF::dwarf::types::ClassLike::Member::bit_offset | ( | ) | const |
Offset of the current member in bits the struct/union/class.
This function differs from offset() for aggregates using bit-field declaration:
Usually, offset() * 8 == bit_offset()
If the offset can't be resolved it returns a lief_errors
bool LIEF::dwarf::types::ClassLike::Member::is_declaration | ( | ) | const |
bool LIEF::dwarf::types::ClassLike::Member::is_external | ( | ) | const |
std::string LIEF::dwarf::types::ClassLike::Member::name | ( | ) | const |
Name of the member.
result< uint64_t > LIEF::dwarf::types::ClassLike::Member::offset | ( | ) | const |
Offset of the current member in the struct/union/class.
If the offset can't be resolved it returns a lief_errors
std::unique_ptr< Type > LIEF::dwarf::types::ClassLike::Member::type | ( | ) | const |
Type of the current member.