Public Member Functions

de::softpro::doc::Source Class Reference

Data source. More...

#include <SignDocSDK-cpp.h>

Public Member Functions

 Source (struct SIGNDOC_Source *aImpl)
 Constructor.
virtual ~Source ()
 Destructor.
int fetch (const void *&aPtr, int aMaxSize)
 Fetch data from the document.

Detailed Description

Data source.

Interface for getting byte ranges from a document.


Constructor & Destructor Documentation

de::softpro::doc::Source::Source ( struct SIGNDOC_Source *  aImpl ) [inline]

Constructor.

Parameters:
[in]aImplA pointer to the C structure.
virtual de::softpro::doc::Source::~Source (  ) [inline, virtual]

Destructor.


Member Function Documentation

int de::softpro::doc::Source::fetch ( const void *&  aPtr,
int  aMaxSize 
) [inline]

Fetch data from the document.

Parameters:
[out]aPtrA pointer to the first byte will be stored here.
[in]aMaxSizeFetch up to this many bytes. Must be positive.
Returns:
0 if no more data is available, otherwise the number of bytes pointed to by the pointer returned in aPtr. The return value is always less than or equal to aMaxSize.

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