Virgil Security Crypto library  2.4.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
VirgilBytesDataSink.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SINK_H
38 #define VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SINK_H
39 
40 #include "../VirgilDataSink.h"
41 
42 namespace virgil { namespace crypto { namespace stream {
43 
50 public:
55 
59  virtual ~VirgilBytesDataSink() noexcept;
60 
64  virtual bool isGood();
65 
69  virtual void write(const virgil::crypto::VirgilByteArray& data);
70 
76  virtual void reset();
77 
78 private:
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.
This is base class for output streams.
Definition: VirgilDataSink.h:49
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:50
virtual ~VirgilBytesDataSink() noexcept
Polymorphic destructor.
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.