Type Alias simics_api_sys::attr_value_t
source · pub type attr_value_t = attr_value;
Expand description
The following table shows the different types of values, the type of their payload in C, and the corresponding Python types:
Kind | C payload | Python type |
Invalid | - | raises exception |
String | const char * | str or unicode |
Integer | int64 or uint64 | int or long |
Boolean | bool | bool |
Floating | double | float |
Object | conf_object_t * | simics.conf_object_t |
List | array of attr_value_t | list |
Dict | array of pairs of attr_value_t | dict |
Data | array of bytes | tuple of small integers |
Nil | - | None |
The members inside
Constructor | |
Destructor | |
Type predicate | |
Access |
Values of type List and Dict can be modified using
None of these functions are available or needed in Python. The
Some values may have data in separate heap allocations. These are normally
managed by the respective constructor and destructor methods, but careless
copying of values may introduce aliasing errors. Use
Aliased Type§
struct attr_value_t {
pub private_kind: attr_kind_t,
pub private_size: u32,
pub private_u: attr_value__bindgen_ty_1,
}
Fields§
§private_kind: attr_kind_t
§private_size: u32
§private_u: attr_value__bindgen_ty_1