LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::assembly::ebpf::operands::Memory Class Reference

This class represents a memory operand. More...

#include <Memory.hpp>

Inheritance diagram for LIEF::assembly::ebpf::operands::Memory:
Collaboration diagram for LIEF::assembly::ebpf::operands::Memory:

Public Member Functions

REG base () const
 The base register.
int64_t displacement () const
 The displacement value.
 ~Memory () override=default
Public Member Functions inherited from LIEF::assembly::ebpf::Operand
std::string to_string () const
 Pretty representation of the operand.
template<class T>
const T * as () const
 This function can be used to down cast an Operand instance:
virtual ~Operand ()

Static Public Member Functions

static bool classof (const Operand *op)

Detailed Description

This class represents a memory operand.

*(u64 *)(r1 + 8) = r2
| |
| +-----> Displacement: 8
|
+----------> Base: r1

Constructor & Destructor Documentation

◆ ~Memory()

LIEF::assembly::ebpf::operands::Memory::~Memory ( )
overridedefault

Member Function Documentation

◆ base()

REG LIEF::assembly::ebpf::operands::Memory::base ( ) const

The base register.

For *(u64 *)(r1 + 8) it would return r1.

◆ classof()

bool LIEF::assembly::ebpf::operands::Memory::classof ( const Operand * op)
static

◆ displacement()

int64_t LIEF::assembly::ebpf::operands::Memory::displacement ( ) const

The displacement value.

For *(u64 *)(r1 + 8) it would return 8.


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