class documentation
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 |
Undocumented |
Unpacks bytes into a tagWithLReturn object.
| Parameters | |
| cls | The class itself (used for creating an instance). |
data:bytes | The bytes to unpack, expected to be a single byte. |
| Returns | |
tagWithLReturn | A tagWithLReturn object. |
| Raises | |
struct.error | If the input bytes are not the expected size (1 byte). |
Packs the tagWithLReturn object into a bytes sequence.
Packs a boolean (as a byte) into a byte string. Uses little-endian byte order.
| Returns | |
bytes | A bytes object representing the packed data (1 byte). |