Virgil Security Crypto library  2.0.7
VirgilDataSource.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H
38 #define VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H
39 
40 #include <virgil/crypto/VirgilByteArray.h>
41 
42 namespace virgil { namespace crypto {
43 
50 public:
54  virtual bool hasData() = 0;
55 
59  virtual VirgilByteArray read() = 0;
60 
61  virtual ~VirgilDataSource() noexcept = default;
62 };
63 
64 }}
65 
66 #endif /* VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H */
virtual bool hasData()=0
Return true if target source still contains unread data.
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 VirgilByteArray read()=0
Return next portion of read data from target source.
This is base class for input streams.
Definition: VirgilDataSource.h:49