microprobe.code.var.VariableSingle

class VariableSingle(name: str, vartype: str, align: int = 1, value=None, address: Address | None = None)[source]

Bases: Variable

__init__(name: str, vartype: str, align: int = 1, value=None, address: Address | None = None)[source]
Parameters:
  • name

  • vartype

  • align – (Default value = 16)

  • value – (Default value = None)

Methods

__init__(name, vartype[, align, value, address])

param name:

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

Variable type (str).

property name

Variable name (str).

array()[source]

Return if the variable is an array.

Return type:

bool

property value

Variable value.

property size

Variable size in bytes (:int).

property align

Variable alignment (int).

property address

Variable address (Address).

set_address(address: Address)

Set variable address.

Parameters:

address – Address of the variable.