CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
esiaccel.types.UIntType Class Reference
Inheritance diagram for esiaccel.types.UIntType:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.UIntType:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, str id, int width)
 
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
int bit_width (self)
 
- Public Member Functions inherited from esiaccel.types.ESIType
 wrap_cpp (cls, cpp.Type cpp_type)
 
str id (self)
 
Tuple[bool, Optional[str]] supports_host (self)
 
int max_size (self)
 
int __hash__ (self)
 
bool __eq__ (self, other)
 

Public Attributes

 max_size
 
- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 
 id
 

Additional Inherited Members

- Protected Member Functions inherited from esiaccel.types.ESIType
 _init_from_cpp (self, cpp.Type cpp_type)
 

Detailed Description

Definition at line 260 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.UIntType.__init__ (   self,
str  id,
int  width 
)

Member Function Documentation

◆ __str__()

str esiaccel.types.UIntType.__str__ (   self)

Reimplemented from esiaccel.types.ESIType.

Definition at line 272 of file types.py.

◆ deserialize()

Tuple[int, bytearray] esiaccel.types.UIntType.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 278 of file types.py.

References esiaccel.types.ESIType.max_size(), esiaccel.types.UIntType.max_size, and esiaccel.types.SIntType.max_size.

◆ is_valid()

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

◆ serialize()

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

Reimplemented from esiaccel.types.ESIType.

Definition at line 275 of file types.py.

Member Data Documentation

◆ max_size

esiaccel.types.UIntType.max_size

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