StreamFrameCodec
class StreamFrameCodec(onPacketReceived: (ByteArray) -> Unit, logTag: String = "StreamCodec")(source)
Meshtastic stream framing codec — pure Kotlin, no platform dependencies.
Implements the START1/START2 + 2-byte-length + payload framing protocol used for serial and TCP communication with Meshtastic radios.
Shared across Android, Desktop, and iOS via SharedRadioInterfaceService.