SignDoc SDK (C++)  5.0.0
Source Class Reference

Data source. More...

#include <SignDocSDK-cpp.h>

Public Member Functions

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

Detailed Description

Data source.

Interface for getting byte ranges from a document.

Constructor & Destructor Documentation

Source ( struct SIGNDOC_Source *  aImpl)
inline

Constructor.

Parameters
[in]aImplA pointer to the C structure.
virtual ~Source ( )
inlinevirtual

Destructor.

Member Function Documentation

int 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: