class documentation

class tagWithLReturn: (source)

Constructor: tagWithLReturn.unpack(data)

View In Hierarchy

Represents a return tag with rail information.

Class Method unpack Unpacks bytes into a tagWithLReturn object.
Method pack Packs the tagWithLReturn object into a bytes sequence.
Class Variable is_with_rail Undocumented
def unpack(cls, data: bytes) -> tagWithLReturn: (source)

Unpacks bytes into a tagWithLReturn object.

Parameters
clsThe class itself (used for creating an instance).
data:bytesThe bytes to unpack, expected to be a single byte.
Returns
tagWithLReturnA tagWithLReturn object.
Raises
struct.errorIf the input bytes are not the expected size (1 byte).
def pack(self) -> bytes: (source)

Packs the tagWithLReturn object into a bytes sequence.

Packs a boolean (as a byte) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (1 byte).
is_with_rail: bool = (source)

Undocumented