Creates a parser with an empty buffer.
How many completed frames are waiting to be taken.
Feeds bytes and queues what completed, for a caller that drains later.
Optionaldialect: Dialect | nullTakes the next queued frame, or null when the parser needs more bytes.
Feeds bytes off a link and returns the frames that completed.
Whatever a serial port or socket delivers can be pushed as it arrives, however it is split. Noise between frames is skipped rather than reported, which is what lets a parser join a stream already in progress.
Optionaldialect: Dialect | null
A streaming frame parser, and the frames it has completed.