bundle.ble.framing ================== .. py:module:: bundle.ble.framing .. autoapi-nested-parse:: Length-prefixed framing utilities for Bundle BLE transports. Classes ------- .. autoapisummary:: bundle.ble.framing.FrameCodec Module Contents --------------- .. py:class:: FrameCodec(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Decode arbitrary BLE notification splits using a 2-byte BE header. .. py:method:: encode(payload: bytes) -> list[bytes] Wrap *payload* with its length prefix. .. py:method:: feed(chunk: bytes) -> collections.abc.Iterable[bytes] Yield every completed frame extracted from *chunk*.