microprobe.code.var.Variable

class Variable[source]

Bases: ABC

__init__()[source]

Methods

__init__()

array()

Return if the variable is an array.

set_address(address)

Set variable address.

Attributes

address

Variable address (Address).

align

Variable alignment (int).

name

Variable name (str).

size

Variable size in bytes (:int).

type

Variable type (str).

value

Variable value.




property type: str

Variable type (str).

property name: str

Variable name (str).

array() bool[source]

Return if the variable is an array.

Return type:

bool

property size: int

Variable size in bytes (:int).

property value

Variable value.

property align: int | None

Variable alignment (int).

set_address(address: Address)[source]

Set variable address.

Parameters:

address – Address of the variable.

property address

Variable address (Address).