Ergonomic facade over the generated serial-framing binding.
A serial line is a stream of bytes with no packet boundaries, so something has
to mark where one message ends and the next begins. SLIP and COBS are the two
ways to do that, and each is offered both as a one-shot call over a complete
frame and as a streaming decoder for the arbitrary chunks a port delivers.
The streaming decoders are what a real read loop uses. A corrupt frame does not
throw, because the frames around it are still good; it is dropped and counted
on SlipDecoder.discarded.
Ergonomic facade over the generated serial-framing binding.
A serial line is a stream of bytes with no packet boundaries, so something has to mark where one message ends and the next begins. SLIP and COBS are the two ways to do that, and each is offered both as a one-shot call over a complete frame and as a streaming decoder for the arbitrary chunks a port delivers.
The streaming decoders are what a real read loop uses. A corrupt frame does not throw, because the frames around it are still good; it is dropped and counted on SlipDecoder.discarded.