SignDoc SDK (C++)  5.0.0
MemoryOutputStream Class Reference

Class implementing an OutputStream writing to memory and allocating memory as needed. More...

#include <SignDocSDK-cpp.h>

Inheritance diagram for MemoryOutputStream:
LibraryOutputStream OutputStream

Public Member Functions

 MemoryOutputStream ()
 Constructor. More...
 
const unsigned char * data ()
 Retrieve a pointer to the contents of this MemoryOutputStream. More...
 
size_t length ()
 Retrieve the length of the contents of this MemoryOutputStream. More...
 
void clear ()
 Clear the buffered data of this MemoryOutputStream. More...
 
- Public Member Functions inherited from LibraryOutputStream
 LibraryOutputStream (SIGNDOC_OutputStream *aImpl)
 Constructor. More...
 
virtual void close ()
 Close the stream. More...
 
virtual void flush ()
 Flush the stream. More...
 
virtual void write (const void *aSrc, int aLen)
 Write octets to the stream. More...
 
virtual void seek (int aPos)
 Seek to the specified position. More...
 
virtual int tell () const
 Retrieve the current position. More...
 
- Public Member Functions inherited from OutputStream
 OutputStream (SIGNDOC_OutputStream *aImpl)
 Constructor. More...
 
virtual ~OutputStream ()
 Destructor. More...
 
SIGNDOC_OutputStream * getImpl ()
 Internal. More...
 

Additional Inherited Members

- Protected Attributes inherited from OutputStream
SIGNDOC_OutputStream * p
 Pointer to C structure. More...
 

Detailed Description

Class implementing an OutputStream writing to memory and allocating memory as needed.

Constructor & Destructor Documentation

MemoryOutputStream ( )
inline

Constructor.

Member Function Documentation

void clear ( )
inline

Clear the buffered data of this MemoryOutputStream.

The buffer will be empty and the current position will be zero.

The buffer may or may not be deallocated.

const unsigned char* data ( )
inline

Retrieve a pointer to the contents of this MemoryOutputStream.

Note that the returned pointer is only valid up to the next output to the stream.

Returns
Pointer to the first octet of the stream contents.
size_t length ( )
inline

Retrieve the length of the contents of this MemoryOutputStream.


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