SignDoc SDK (C++)
5.0.0
|
Class implementing an OutputStream writing to memory and allocating memory as needed. More...
#include <SignDocSDK-cpp.h>
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... | |
Class implementing an OutputStream writing to memory and allocating memory as needed.
|
inline |
Constructor.
|
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.
|
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.
|
inline |
Retrieve the length of the contents of this MemoryOutputStream.