Public Member Functions

de::softpro::doc::MemoryOutputStream Class Reference

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

#include <SignDocSDK-cpp.h>

Inheritance diagram for de::softpro::doc::MemoryOutputStream:
de::softpro::doc::LibraryOutputStream de::softpro::doc::OutputStream

Public Member Functions

 MemoryOutputStream ()
 Constructor.
const unsigned char * data ()
 Retrieve a pointer to the contents of this MemoryOutputStream.
size_t length ()
 Retrieve the length of the contents of this MemoryOutputStream.
void clear ()
 Clear the buffered data of this MemoryOutputStream.

Detailed Description

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


Constructor & Destructor Documentation

de::softpro::doc::MemoryOutputStream::MemoryOutputStream (  ) [inline]

Constructor.


Member Function Documentation

void de::softpro::doc::MemoryOutputStream::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* de::softpro::doc::MemoryOutputStream::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 de::softpro::doc::MemoryOutputStream::length (  ) [inline]

Retrieve the length of the contents of this MemoryOutputStream.


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