SignDoc SDK (C++)  5.0.0
MemoryInputStream Class Reference

Class implementing an InputStream reading from memory. More...

#include <SignDocSDK-cpp.h>

Inheritance diagram for MemoryInputStream:
LibraryInputStream InputStream

Public Member Functions

 MemoryInputStream (const unsigned char *aSrc, size_t aLen)
 Constructor. More...
 
- Public Member Functions inherited from LibraryInputStream
 LibraryInputStream (SIGNDOC_InputStream *aImpl)
 Constructor. More...
 
virtual int read (void *aDst, int aLen)
 Read octets from source. More...
 
virtual void close ()
 Close the stream. More...
 
virtual void seek (int aPos)
 Seek to the specified position (int). More...
 
virtual int tell () const
 Retrieve the current position (int). More...
 
virtual int getAvailable ()
 Get an estimate of the number of octets available for reading. More...
 
- Public Member Functions inherited from InputStream
 InputStream (SIGNDOC_InputStream *aImpl)
 Constructor. More...
 
virtual ~InputStream ()
 Destructor. More...
 
SIGNDOC_InputStream * getImpl ()
 Internal. More...
 

Additional Inherited Members

- Protected Attributes inherited from InputStream
SIGNDOC_InputStream * p
 Pointer to C structure. More...
 

Detailed Description

Class implementing an InputStream reading from memory.

Constructor & Destructor Documentation

MemoryInputStream ( const unsigned char *  aSrc,
size_t  aLen 
)
inline

Constructor.

Read from the buffer pointed to by aSrc. Note that the buffer contents won't be copied, therefore the buffer must remain valid throughout the use of this object.

Parameters
[in]aSrcPoints to the stream contents.
[in]aLenSize of the stream contents.

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