Virgil Security Crypto library
2.4.6
|
This is base class for output streams. More...
#include <VirgilDataSink.h>
Public Member Functions | |
virtual bool | isGood ()=0 |
Return true if target object is able to write data. | |
virtual void | write (const VirgilByteArray &data)=0 |
Write data to the target object. More... | |
Static Public Member Functions | |
static void | safeWrite (VirgilDataSink &sink, const VirgilByteArray &data) |
Write data to the sink in a safe way. More... | |
This is base class for output streams.
Defines interface that allows write data to the output stream.
|
static |
Write data to the sink in a safe way.
Write only if data is not empty and sink is good, otherwise - do nothing
sink | sink to be written to. |
data | data to be written. |
|
pure virtual |
Write data to the target object.
data | data to be written, SHOULD NOT be empty. |
Implemented in virgil::crypto::stream::VirgilStreamDataSink, and virgil::crypto::stream::VirgilBytesDataSink.