A file pointer or socket pointer.
The character variable containing the data.
A pointer with two elements:
A running count of how many bytes have been streamed so far. It does not matter what you set this to, it gets reset to 0 at the beginning of the stream operation and it automatically updated as the stream progresses. This can be used to implement a progress bar.
A logical flag. If it is set to .t., the stream operation will abort. This can be used to implement a cancel button
Indicates the size of the chunks in which the stream is transferred.
Indicates the maximum bytes that should be streamed. The operation will stop if it reaches this size, even if there is more data available.
Perform a streamed copy from a string- control variables include .exit and .bytes .
Streaming is a faster, optimized way of copying. The FILE.STREAM_FROM_STRING() method copies data from a character variable to a file or socket.