Virgil Security Crypto library  1.8.2
VirgilBytesDataSink.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SINK_H
38 #define VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SINK_H
39 
40 #include <virgil/crypto/VirgilDataSink.h>
41 
42 namespace virgil { namespace crypto { namespace stream {
43 
50 public:
54  explicit VirgilBytesDataSink(virgil::crypto::VirgilByteArray& out);
55 
59  virtual ~VirgilBytesDataSink() throw();
60 
64  virtual bool isGood();
65 
69  virtual void write(const virgil::crypto::VirgilByteArray& data);
70 
76  virtual void reset();
77 
78 private:
79  virgil::crypto::VirgilByteArray& out_;
80 };
81 
82 }}}
83 
84 #endif /* VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SINK_H */
VirgilBytesDataSink(virgil::crypto::VirgilByteArray &out)
Creates data sink based on byte array.
virtual void write(const virgil::crypto::VirgilByteArray &data)
Overriding of VirgilDataSink::write() method.
virtual ~VirgilBytesDataSink()
Polymorphic destructor.
This is base class for output streams.
Definition: VirgilDataSink.h:49
Definition: VirgilAsn1Compatible.h:46
C++ Byte Array implementation of the VirgilDataSink class.
Definition: VirgilBytesDataSink.h:49
virtual void reset()
Reset internal state to initial.
virtual bool isGood()
Overriding of VirgilDataSink::isGood() method.