Class implementing an OutputStream writing to memory and allocating memory as needed. More...
#include <SignDocSDK-cpp.h>
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. |
Class implementing an OutputStream writing to memory and allocating memory as needed.
de::softpro::doc::MemoryOutputStream::MemoryOutputStream | ( | ) | [inline] |
Constructor.
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.
size_t de::softpro::doc::MemoryOutputStream::length | ( | ) | [inline] |
Retrieve the length of the contents of this MemoryOutputStream.