|
| | __init__ (self, str id) |
| Tuple[bool, Optional[str]] | is_valid (self, obj) |
| bytearray | serialize (self, obj) |
| Tuple[object, bytearray] | deserialize (self, bytearray data) |
| | __init__ (self, str id) |
| | wrap_cpp (cls, cpp.Type cpp_type) |
| str | id (self) |
| Tuple[bool, Optional[str]] | supports_host (self) |
| int | bit_width (self) |
| int | max_size (self) |
| int | __hash__ (self) |
| bool | __eq__ (self, other) |
| str | __str__ (self) |
Definition at line 188 of file types.py.
◆ __init__()
| esiaccel.types.AnyType.__init__ |
( |
| self, |
|
|
str | id ) |
◆ deserialize()
| Tuple[object, bytearray] esiaccel.types.AnyType.deserialize |
( |
| self, |
|
|
bytearray | data ) |
Convert a bytearray to a Python object. Return the object and the
leftover bytes.
Reimplemented from esiaccel.types.ESIType.
Definition at line 199 of file types.py.
◆ is_valid()
| Tuple[bool, Optional[str]] esiaccel.types.AnyType.is_valid |
( |
| self, |
|
|
| obj ) |
Is a Python object compatible with HW type? Returns either '(True,
None)' if it is, or '(False, reason)' if it is not.
Reimplemented from esiaccel.types.ESIType.
Definition at line 193 of file types.py.
◆ serialize()
| bytearray esiaccel.types.AnyType.serialize |
( |
| self, |
|
|
| obj ) |
The documentation for this class was generated from the following file:
- /home/runner/work/circt-www/circt-www/circt_src/lib/Dialect/ESI/runtime/python/esiaccel/types.py