Class for serialization and deserialization in various formats for communication.
More...
Class for serialization and deserialization in various formats for communication.
Definition at line 30 of file SerDes.py.
◆ __init__()
compilerinterface.SerDes.SerDes.__init__ |
( |
| self, |
|
|
| data_format ) |
Contructor for SerDes object.
- Parameters
-
data_format | Format for serialization and deserialization |
Definition at line 33 of file SerDes.py.
◆ deserializeBytes()
compilerinterface.SerDes.SerDes.deserializeBytes |
( |
| self, |
|
|
| datastream ) |
Deserializes and returns bitstream data.
Definition at line 63 of file SerDes.py.
◆ deserializeData()
compilerinterface.SerDes.SerDes.deserializeData |
( |
| self, |
|
|
| rawdata ) |
Deserializes data for specified data format.
- Parameters
-
rawdata | Datastream receiving serialized data |
- Returns
- Deserialized data
Definition at line 52 of file SerDes.py.
◆ deserializeJson()
compilerinterface.SerDes.SerDes.deserializeJson |
( |
| self, |
|
|
| datastream ) |
Deserializes and returns JSON data.
Definition at line 56 of file SerDes.py.
◆ deserializeProtobuf()
compilerinterface.SerDes.SerDes.deserializeProtobuf |
( |
| self, |
|
|
| datastream ) |
◆ getOutputBuffer()
compilerinterface.SerDes.SerDes.getOutputBuffer |
( |
| self | ) |
|
Returns value in buffer and empties it.
- Returns
- Data from output buffer
Definition at line 112 of file SerDes.py.
◆ serializeBytes()
compilerinterface.SerDes.SerDes.serializeBytes |
( |
| self, |
|
|
| data ) |
Serializes data to bitstream.
Definition at line 87 of file SerDes.py.
◆ serializeData()
compilerinterface.SerDes.SerDes.serializeData |
( |
| self, |
|
|
| data ) |
Serializes data and places it in a buffer.
Definition at line 77 of file SerDes.py.
◆ serializeJson()
compilerinterface.SerDes.SerDes.serializeJson |
( |
| self, |
|
|
| data ) |
Serializes data to JSON.
Definition at line 81 of file SerDes.py.
◆ serializeProtobuf()
compilerinterface.SerDes.SerDes.serializeProtobuf |
( |
| self, |
|
|
| data ) |
◆ buffer
compilerinterface.SerDes.SerDes.buffer |
◆ data_format
compilerinterface.SerDes.SerDes.data_format |
◆ deserializeBytes
compilerinterface.SerDes.SerDes.deserializeBytes |
◆ deserializeJson
compilerinterface.SerDes.SerDes.deserializeJson |
◆ deserializeProtobuf
compilerinterface.SerDes.SerDes.deserializeProtobuf |
◆ desMap
compilerinterface.SerDes.SerDes.desMap |
◆ read_stream_iter
compilerinterface.SerDes.SerDes.read_stream_iter |
◆ serializeBytes
compilerinterface.SerDes.SerDes.serializeBytes |
◆ serializeJson
compilerinterface.SerDes.SerDes.serializeJson |
◆ serializeProtobuf
compilerinterface.SerDes.SerDes.serializeProtobuf |
◆ serMap
compilerinterface.SerDes.SerDes.serMap |
The documentation for this class was generated from the following file:
- CompilerInterface/compilerinterface/SerDes.py