|
GATE
C/C++ Framework
|
Miscellaneous utilities and helper functions. More...
#include "gate/gate_core_api.h"#include "gate/gatetypes.h"#include "gate/strings.h"#include "gate/maps.h"#include "gate/arrays.h"#include "gate/streams.h"#include "gate/typeids.h"Functions | |
| GATE_CORE_API gate_result_t | gate_util_buffer_load (char const **ptrbuffer, gate_size_t *ptrbuffersize, gate_stream_t *srcstream, gate_memstream_t **membuffer) |
| Deduces a content pointer and length from a source stream and optionally allocates a memorystream. | |
Miscellaneous utilities and helper functions.
| GATE_CORE_API gate_result_t gate_util_buffer_load | ( | char const ** | ptrbuffer, |
| gate_size_t * | ptrbuffersize, | ||
| gate_stream_t * | srcstream, | ||
| gate_memstream_t ** | membuffer ) |
Deduces a content pointer and length from a source stream and optionally allocates a memorystream.
An input memstream or stringstream will return their contents directly. Other streams are transferred into a new allocated memstream to access content pointers
| [out] | ptrbuffer | pointer to char-pointer that is filled pointer to begin of content |
| [out] | ptrbuffersize | pointer to size that is filled with length of source stream |
| [in] | srcstream | input stream that's content is directly accessed or transferred |
| [in,out] | membuffer | pointer to optionally created memstream that receives transferred data from srcstream |