This group of functions is used to operate on input or output data streams. The decode functions generated by the XBinder compiler can read and decode from a stream that was created using these functions. A stream is an abstraction of some physical input medium such as a file, memory buffer, or socket interface.
The key functions in this group are as follows:
rtxStreamFileCreateWriter - this function opens a file for write access as an output stream.
rtxStreamFileCreateReader - this function opens a file for read access as an input stream.
rtxStreamMemoryCreateWriter - this function opens a memory buffer for write access as an output stream.
rtxStreamMemoryCreateReader - this function opens a memory buffer (byte array) for read access as an input stream.
rtxStreamSocketCreateWriter - this function open a socket for write access as an output stream.
rtxStreamSocketCreateReader - this function open a socket for read access as an input stream.
rtxStreamRead -This function reads data from the input stream into a given memory buffer.
rtxStreamWrite -This function writes data to an output stream.
rtxStreamFlush -This function flushes the output stream and forces any buffered output octets to be written out.
rtxStreamClose - This function closes the input or output stream and releases any system resources associated with the stream. For output streams this function also flushes all internal buffers to the stream.
For a complete list and full description of all of the stream input/output functions, see the XBinder C/ C++ Runtime Reference Manual.