simple pipe that will append a newline to every data packet More...
#include <line.h>
Inherits Sink< Buffer< uint8_t > >.
Public Member Functions | |
| LineDelimiter (Sink< Buffer< uint8_t > > &p) | |
| set underlying Sink | |
| bool | full () override |
| check if sink is full | |
| void | push (const Buffer< uint8_t > &b) override |
| copy semantics does not check for space. guard by using 'if (!full) { ... }' | |
| void | push (Buffer< uint8_t > &&b) override |
| move semantics does not check for space. guard by using 'if (!full) { ... }' | |
| void | trypush (Buffer< uint8_t > &&t) |
| use this if you don't care if it's going to be successful. data gets discarded if sink is full. | |
simple pipe that will append a newline to every data packet