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

C++ Byte Array implementation of the VirgilDataSource class. More...

#include <VirgilBytesDataSource.h>

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

Public Member Functions

 VirgilBytesDataSource (const virgil::crypto::VirgilByteArray &in, size_t chunkSize=1)
 Creates data sink based on byte array. More...
 
virtual ~VirgilBytesDataSource () noexcept
 Polymorphic destructor.
 
virtual bool hasData ()
 Overriding of VirgilDataSource::hasData() method.
 
virtual virgil::crypto::VirgilByteArray read ()
 Overriding of VirgilDataSource::read() method.
 
virtual void reset ()
 Reset internal state to initial. More...
 

Detailed Description

C++ Byte Array implementation of the VirgilDataSource class.

Note
This class CAN not be used in wrappers.

Constructor & Destructor Documentation

virgil::crypto::stream::VirgilBytesDataSource::VirgilBytesDataSource ( const virgil::crypto::VirgilByteArray in,
size_t  chunkSize = 1 
)
explicit

Creates data sink based on byte array.

Parameters
in- byte array.
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.

Member Function Documentation

virtual void virgil::crypto::stream::VirgilBytesDataSource::reset ( )
virtual

Reset internal state to initial.

This method can used for secondary data reading.


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