Snippet - Abstract ASCII Line Processor

Abstract ASCII Line Processor

Many serial devices are outputting ASCII lines terminated by ‘\n’, ‘\r’ or a combination of those.
When parsing this kind of data in .NETMF, it is important to keep memory allocations to a minimum.

Therefore I’ve written this abstract base class that can be used for parsing this kind of data.
There is an example for the SerialPort device.

Please note that I wasn’t able to test it for now, as I just developed it in the emulator. Will test it on a real NETMF device soon.


@ WouterH - Very handy Wouter, many thanks.