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

    Class CobsDecoder

    Reassembles whole COBS frames from the chunks a serial port delivers.

    The counterpart to SlipDecoder, for links where the framing overhead has to stay small and predictable.

    Index
    • get discarded(): number

      How many corrupt frames this decoder has discarded.

      Returns number

    • Feeds a chunk of the stream.

      Parameters

      • chunk: Uint8Array

        The bytes just read from the port.

      Returns Buffer<ArrayBufferLike>[]

      Every frame this chunk completed, in order.

    • Discards any partly assembled frame.

      Returns void