|NORSYS SOFTWARE © 2012||NETICA API||C   VERSION   5.04 |
|const char* GetStreamContents_ns (||stream_ns* strm, long* length )|
Returns the memory buffer associated with memory stream strm, which will contain the results of any writing Netica has done to the stream.
The result returned is only valid until the next call using this memory stream. If the result is needed longer than that, it should be duplicated. Do not attempt to modify or free the result returned. Calling this function does not remove or alter the buffer's contents; a subsequent call will yield the same results.
*length will be set to the number of bytes in the buffer, excluding any null terminator. It's value upon entry is ignored.
If strm is not a memory stream (i.e., created by NewMemoryStream_ns), an error will be generated.
Example 2:See NewMemoryStream_ns.