37 #ifndef VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SOURCE_H
38 #define VIRGIL_CRYPTO_VIRGIL_BYTES_DATA_SOURCE_H
40 #include <virgil/crypto/VirgilByteArray.h>
41 #include <virgil/crypto/VirgilDataSource.h>
43 namespace virgil {
namespace crypto {
namespace stream {
73 virtual virgil::crypto::VirgilByteArray
read();
83 const virgil::crypto::VirgilByteArray& in_;
84 const size_t chunkSize_;
virtual virgil::crypto::VirgilByteArray read()
Overriding of VirgilDataSource::read() method.
C++ Byte Array implementation of the VirgilDataSource class.
Definition: VirgilBytesDataSource.h:50
VirgilBytesDataSource(const virgil::crypto::VirgilByteArray &in, size_t chunkSize=5)
Creates data sink based on byte array.
virtual bool hasData()
Overriding of VirgilDataSource::hasData() method.
virtual void reset()
Reset internal state to initial.
Definition: VirgilAsn1Compatible.h:46
virtual ~VirgilBytesDataSource()
Polymorphic destructor.
This is base class for input streams.
Definition: VirgilDataSource.h:49