pamoja for TypeScript - v0.1.17
    Preparing search index...

    Namespace serial

    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.

    CobsDecoder
    SlipDecoder
    Framing
    cobs
    COBS_DELIMITER_BYTE
    slip
    SLIP_END_BYTE
    SLIP_ESC_BYTE
    SLIP_ESC_END_BYTE
    SLIP_ESC_ESC_BYTE