WISP ERT (Server)  1.0.0
The WISP Extended Runtime (Server side)
wtp.util.ChecksumStream Class Reference

Byte data stream with checksum functionality. More...

Inheritance diagram for wtp.util.ChecksumStream:
wtp.util.DataStreamMixin

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...
 

Detailed Description

Byte data stream with checksum functionality.

Constructor & Destructor Documentation

◆ __init__()

def wtp.util.ChecksumStream.__init__ (   self,
  args,
  kwargs 
)

Checksum stream constructor.

Member Function Documentation

◆ begin_checksum()

def wtp.util.ChecksumStream.begin_checksum (   self)

Begin checksum calculation.

◆ validate_checksum()

def wtp.util.ChecksumStream.validate_checksum (   self)

Validate checksum.

Exceptions
WTPErrorif checksum validation failed.

◆ write_checksum()

def wtp.util.ChecksumStream.write_checksum (   self)

Write checksum to stream.

Member Data Documentation

◆ _begin_pos

wtp.util.ChecksumStream._begin_pos
private

Begin checksum position.

◆ _checksum_func

wtp.util.ChecksumStream._checksum_func
private

Checksum function.

◆ _checksum_type

wtp.util.ChecksumStream._checksum_type
private

Checksum data type.


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