CIRCT
20.0.0git
|
Public Member Functions | |
Tuple[bool, Optional[str]] | is_valid (self, obj) |
str | __str__ (self) |
bytearray | serialize (self, int obj) |
Tuple[int, bytearray] | deserialize (self, bytearray data) |
Public Member Functions inherited from esiaccel.types.IntType | |
def | __init__ (self, cpp.IntegerType cpp_type) |
int | bit_width (self) |
Public Member Functions inherited from esiaccel.types.ESIType | |
def | __init__ (self, cpp.Type cpp_type) |
Tuple[bool, Optional[str]] | supports_host (self) |
int | max_size (self) |
bytearray | serialize (self, obj) |
Additional Inherited Members | |
Public Attributes inherited from esiaccel.types.ESIType | |
cpp_type | |
str esiaccel.types.SIntType.__str__ | ( | self | ) |
Reimplemented from esiaccel.types.ESIType.
Tuple[int, bytearray] esiaccel.types.SIntType.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 194 of file types.py.
References esiaccel.types.ESIType.max_size().
Tuple[bool, Optional[str]] esiaccel.types.SIntType.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 177 of file types.py.
References esiaccel.types.ESIType.bit_width(), esiaccel.types.VoidType.bit_width(), esiaccel.types.BitsType.bit_width(), esiaccel.types.IntType.bit_width(), esiaccel.types.StructType.bit_width(), and esiaccel.types.ArrayType.bit_width().
bytearray esiaccel.types.SIntType.serialize | ( | self, | |
int | obj | ||
) |
Definition at line 191 of file types.py.
References esiaccel.types.ESIType.max_size().