|
WISP ERT (Server)
1.0.0
The WISP Extended Runtime (Server side)
|
Byte data stream with checksum functionality. More...
Public Member Functions | |
| def | __init__ (self, args, kwargs) |
| Checksum stream constructor. More... | |
| def | begin_checksum (self) |
| Begin checksum calculation. More... | |
| def | validate_checksum (self) |
| Validate checksum. More... | |
| def | write_checksum (self) |
| Write checksum to stream. More... | |
Public Member Functions inherited from wtp.util.DataStreamMixin | |
| def | read_data (self, fmt, endian="<") |
| Read binary data from stream with given format. More... | |
| def | write_data (self, fmt, args, kwargs) |
| Write binary data to stream with given format. More... | |
Private Attributes | |
| _checksum_func | |
| Checksum function. More... | |
| _checksum_type | |
| Checksum data type. More... | |
| _begin_pos | |
| Begin checksum position. More... | |
Byte data stream with checksum functionality.
| def wtp.util.ChecksumStream.__init__ | ( | self, | |
| args, | |||
| kwargs | |||
| ) |
Checksum stream constructor.
| def wtp.util.ChecksumStream.begin_checksum | ( | self | ) |
Begin checksum calculation.
| def wtp.util.ChecksumStream.validate_checksum | ( | self | ) |
Validate checksum.
| WTPError | if checksum validation failed. |
| def wtp.util.ChecksumStream.write_checksum | ( | self | ) |
Write checksum to stream.
|
private |
Begin checksum position.
|
private |
Checksum function.
|
private |
Checksum data type.