Loading [MathJax]/extensions/tex2jax.js
CIRCT 22.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
esiaccel.types.ArrayType Class Reference
Inheritance diagram for esiaccel.types.ArrayType:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.ArrayType:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, str id, "ESIType" element_type, int size)
 
int bit_width (self)
 
Tuple[bool, Optional[str]] is_valid (self, obj)
 
bytearray serialize (self, list lst)
 
Tuple[List[Any], bytearray] deserialize (self, bytearray data)
 
- Public Member Functions inherited from esiaccel.types.ESIType
 wrap_cpp (cls, cpp.Type cpp_type)
 
Tuple[bool, Optional[str]] supports_host (self)
 
int max_size (self)
 
str __str__ (self)
 

Public Attributes

 element_type
 
 size
 
- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 

Protected Member Functions

 _init_from_cpp (self, cpp.ArrayType cpp_type)
 

Detailed Description

Definition at line 287 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.ArrayType.__init__ (   self,
str  id,
"ESIType"  element_type,
int  size 
)

Member Function Documentation

◆ _init_from_cpp()

esiaccel.types.ArrayType._init_from_cpp (   self,
cpp.ArrayType  cpp_type 
)
protected

◆ bit_width()

int esiaccel.types.ArrayType.bit_width (   self)

◆ deserialize()

Tuple[List[Any], bytearray] esiaccel.types.ArrayType.deserialize (   self,
bytearray  data 
)

◆ is_valid()

Tuple[bool, Optional[str]] esiaccel.types.ArrayType.is_valid (   self,
  obj 
)

◆ serialize()

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

Reimplemented from esiaccel.types.ESIType.

Definition at line 313 of file types.py.

References esiaccel.types.ArrayType.element_type, and esiaccel.types.ArrayType.serialize().

Referenced by esiaccel.types.ArrayType.serialize().

Member Data Documentation

◆ element_type

esiaccel.types.ArrayType.element_type

◆ size

esiaccel.types.ArrayType.size

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