Virgil Security Crypto library  2.6.3
Public Member Functions | List of all members
virgil::crypto::stream::VirgilStreamDataSource Class Reference

C++ stream implementation of the VirgilDataSource class. More...

#include <VirgilStreamDataSource.h>

Inheritance diagram for virgil::crypto::stream::VirgilStreamDataSource:
virgil::crypto::VirgilDataSource

Public Member Functions

 VirgilStreamDataSource (std::istream &in, size_t chunkSize=4096)
 Creates data sink based on std::istream object. More...
 
virtual ~VirgilStreamDataSource () noexcept
 Polymorphic destructor.
 
virtual bool hasData ()
 Overriding of VirgilDataSource::hasData() method.
 
virtual virgil::crypto::VirgilByteArray read ()
 Overriding of VirgilDataSource::read() method.
 

Detailed Description

C++ stream implementation of the VirgilDataSource class.

Note
This class CAN not be used in wrappers.

Constructor & Destructor Documentation

virgil::crypto::stream::VirgilStreamDataSource::VirgilStreamDataSource ( std::istream &  in,
size_t  chunkSize = 4096 
)
explicit

Creates data sink based on std::istream object.

Parameters
in- input stream.
chunkSize- size of the data that will be returned by read() method. Note, the real value may be different from the given value, it is only recommendation.

The documentation for this class was generated from the following file: