A sink which outputs only one boolean value. More...
#include <bool-sink.hpp>
Public Member Functions | |
BoolSink (bool &value) | |
Create a bool sink whose output will be stored in value . More... | |
Public Member Functions inherited from ndn::security::transform::Downstream | |
virtual | ~Downstream ()=default |
size_t | write (const uint8_t *buf, size_t size) |
Accept input data and perform transformation. More... | |
void | end () |
Close the input interface of a module. More... | |
bool | isEnd () const |
Check if the input interface of a module is closed. More... | |
void | setIndex (size_t index) |
Set the module index. More... | |
size_t | getIndex () const |
Get the module index. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::security::transform::Downstream | |
Downstream () | |
A sink which outputs only one boolean value.
It checks the first byte that is ever written into the sink, and set output true if the byte is non-zero, otherwise false.
Definition at line 37 of file bool-sink.hpp.
|
explicit |
Create a bool sink whose output will be stored in value
.
Definition at line 28 of file bool-sink.cpp.