ui.messages =========== .. py:module:: ui.messages Classes ------- .. autoapisummary:: ui.messages.ScreenRender ui.messages.ScreenRenderAnswer Module Contents --------------- .. py:class:: ScreenRender Raw `raccoon/screen_render` wire message. Wire format, all big-endian and tightly packed: - bytes `0..7`: `timestamp` as signed int64 - bytes `8..11`: `screen_name` byte length as unsigned uint32 - next `N` bytes: UTF-8 `screen_name` - next `4` bytes: `entries` byte length as unsigned uint32 - next `M` bytes: UTF-8 `entries` .. py:attribute:: timestamp :type: int .. py:attribute:: screen_name :type: str .. py:attribute:: entries :type: str .. py:method:: encode() -> bytes .. py:method:: decode(data: bytes) -> Self :classmethod: .. py:class:: ScreenRenderAnswer Raw `raccoon/screen_render/answer` wire message. Wire format, all big-endian and tightly packed: - bytes `0..7`: `timestamp` as signed int64 - bytes `8..11`: `screen_name` byte length as unsigned uint32 - next `N` bytes: UTF-8 `screen_name` - next `4` bytes: `value` byte length as unsigned uint32 - next `P` bytes: UTF-8 `value` - next `4` bytes: `reason` byte length as unsigned uint32 - next `Q` bytes: UTF-8 `reason` .. py:attribute:: timestamp :type: int .. py:attribute:: screen_name :type: str .. py:attribute:: value :type: str .. py:attribute:: reason :type: str .. py:method:: encode() -> bytes .. py:method:: decode(data: bytes) -> Self :classmethod: