altera2015 / usbserial

Flutter Android USB Serial plugin
BSD 3-Clause "New" or "Revised" License
125 stars 84 forks source link

Introducing magicHeaderFixedLength class #114

Open prash-p opened 4 months ago

prash-p commented 4 months ago

Instead of reading the data stream to determine the message length, as in MagicHeaderAndLengthByteTransformer, the new MagicHeaderFixedLengthByteTransformer takes in an integer variable len to read messages of a fixed length that are preceded by a "magic header" string.