class documentation
Represents PTP jump parameters with jump height and z limit.
Class Method | unpack |
Unpacks a bytes sequence into a tagPTPJumpParams object. |
Method | pack |
Packs the tagPTPJumpParams object into a bytes sequence. |
Class Variable | jump |
Undocumented |
Class Variable | z |
Undocumented |
Unpacks a bytes sequence into a tagPTPJumpParams object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 16 bytes (2 doubles). |
Returns | |
tagPTPJumpParams | A tagPTPJumpParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (16 bytes). |
Packs the tagPTPJumpParams object into a bytes sequence.
Packs the jumpHeight and zLimit (floats) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (16 bytes). |