simple example of a pipe that receives bytes as they come in and splits them into \n delimited lines.
More...
#include <line.h>
Inherits Source< Buffer< uint8_t > >.
Public Member Functions | |
| LineFilter (Source< Buffer< uint8_t > > &p) | |
| set underlying Source | |
| bool | empty () override |
| check if source is empty | |
| Buffer< uint8_t > | pop () override |
| pull object from source does not check for data. guard by using 'if (!empty) { ... }' | |
simple example of a pipe that receives bytes as they come in and splits them into \n delimited lines.
also filters the newline out (both LF and CRLF style newlines)