#include <struct_utils.hpp>
Public Member Functions | |
| std::string | str (std::shared_ptr< arion::Arion > arion, uint64_t val) override |
Public Member Functions inherited from arion_type::KernelType | |
| virtual | ~KernelType ()=default |
| Virtual destructor to allow polymorphic deletion. | |
| arion::LOG_COLOR | get_color () |
Protected Member Functions | |
| ArionStructType (std::string name, std::shared_ptr< arion_poly_struct::PolymorphicStructFactory< T > > factory) | |
Protected Member Functions inherited from arion_type::KernelType | |
| KernelType (std::string name, arion::LOG_COLOR color=arion::LOG_COLOR::DEFAULT) | |
Protected Member Functions inherited from arion_poly_struct::AbsArionStructType | |
| virtual | ~AbsArionStructType ()=default |
| bool | arion_is_mapped (std::shared_ptr< arion::Arion > arion, arion::ADDR addr) |
| arion::CPU_ARCH | arion_curr_arch (std::shared_ptr< arion::Arion > arion) |
| std::vector< arion::BYTE > | arion_read_mem (std::shared_ptr< arion::Arion > arion, arion::ADDR addr, size_t sz) |
Private Attributes | |
| std::shared_ptr< arion_poly_struct::PolymorphicStructFactory< T > > | factory |
| The factory responsible for handling the polymorphic nature of the structure. | |
Represents a standard, polymorphic structure type (fixed layout, but size/field interpretation depends on architecture).
| T | The host-side C++ type corresponding to the structure being represented. |
|
inlineprotected |
Builder for ArionStructType instances.
| [in] | name | The display name of the structure type. |
| [in] | factory | The shared pointer to the factory defining the structure layout. |
|
inlineoverridevirtual |
Converts a memory address pointing to the structure in emulated memory to a formatted string representation of the structure content.
| [in] | arion | Shared pointer to the Arion instance. |
| [in] | val | The memory address pointing to the structure. |
Reimplemented from arion_type::KernelType.
Reimplemented in arion_lnx_type::StructSockaddrUnType.
|
private |
The factory responsible for handling the polymorphic nature of the structure.