openlifu.io.LIFUUserConfig.LifuUserConfigHeader

class openlifu.io.LIFUUserConfig.LifuUserConfigHeader(magic: int, version: int, seq: int, crc: int, json_len: int)[source]

Bases: object

Wire format header for Lifu config

classmethod from_bytes(data: bytes) LifuUserConfigHeader[source]

Parse header from wire format bytes (little-endian)

is_valid() bool[source]

Check if magic and version are valid

to_bytes() bytes[source]

Convert header to wire format bytes (little-endian)