CIRCT  19.0.0git
Public Member Functions | List of all members
esiaccel.types.VoidType Class Reference
Inheritance diagram for esiaccel.types.VoidType:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.VoidType:
Collaboration graph
[legend]

Public Member Functions

Tuple[bool, Optional[str]] is_valid (self, obj)
 
int bit_width (self)
 
bytearray serialize (self, obj)
 
Tuple[object, bytearray] deserialize (self, bytearray data)
 
- 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)
 
str __str__ (self)
 

Additional Inherited Members

- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 

Detailed Description

Definition at line 85 of file types.py.

Member Function Documentation

◆ bit_width()

int esiaccel.types.VoidType.bit_width (   self)
Size of this type, in bits. Negative for unbounded types.

Reimplemented from esiaccel.types.ESIType.

Definition at line 93 of file types.py.

Referenced by esiaccel.types.UIntType.is_valid(), esiaccel.types.SIntType.is_valid(), esiaccel.types.ESIType.max_size(), and esiaccel.types.ESIType.supports_host().

◆ deserialize()

Tuple[object, bytearray] esiaccel.types.VoidType.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 100 of file types.py.

◆ is_valid()

Tuple[bool, Optional[str]] esiaccel.types.VoidType.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 87 of file types.py.

◆ serialize()

bytearray esiaccel.types.VoidType.serialize (   self,
  obj 
)
Convert a Python object to a bytearray.

Reimplemented from esiaccel.types.ESIType.

Definition at line 96 of file types.py.


The documentation for this class was generated from the following file: