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