37 #ifndef VIRGIL_CRYPTO_VIRGIL_DATA_SINK_H
38 #define VIRGIL_CRYPTO_VIRGIL_DATA_SINK_H
40 #include <virgil/crypto/VirgilByteArray.h>
42 namespace virgil {
namespace crypto {
virtual void write(const VirgilByteArray &data)=0
Write data to the target object.
This is base class for output streams.
Definition: VirgilDataSink.h:49
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:53
virtual bool isGood()=0
Return true if target object is able to write data.
static void safeWrite(VirgilDataSink &sink, const VirgilByteArray &data)
Write data to the sink in a safe way.