PFStream =============== A stream is sequence of bytes. Small streams (<256K) reside in memory, and large streams are flushed to temporary files. These files are created in a folder specified during initializing the library. If the library is not initialized during creating a stream, the files are created in a temporary folder. .. cpp:function:: tStreamPos seek(tStreamPos offset, int origin); :param offset: Offset from origin :param origin: FILE_BEGIN, FILE_CURRENT or FILE_END :description: Moves the stream pointer to a specified location. .. cpp:function:: tStreamSize read(void * buffer, tStreamSize size); :param buffer: Pointer to data buffer :param size: Size of buffer :description: Reads data from a stream and returns the number of bytes actually read. .. cpp:function:: tStreamSize write(const void * buffer, tStreamSize size); :param buffer: Pointer to data buffer :param size: Size of buffer :description: Writes data to a stream and returns the number of bytes actually written. .. cpp:function:: tStreamPos size(); :description: Returns number of bytes in stream. .. cpp:function:: tStreamPos copyTo(PFStream * pStream); :description: Copies stream contents to another stream. .. cpp:function:: tStreamPos setEndOfStream(); :description: Set the stream end at the current position. .. cpp:function:: void reset(); :description: Clear the stream contents.