stream_copy_to_stream
Copies data from one stream to another
&reftitle.description;
intstream_copy_to_stream
resourcesource
resourcedest
intmaxlength-1
intoffset0
Makes a copy of up to maxlength bytes
of data from the current position (or from the
offset position, if specified) in
source to dest. If
maxlength is not specified, all remaining content in
source will be copied.
&reftitle.parameters;
source
The source stream
dest
The destination stream
maxlength
Maximum bytes to copy
offset
The offset where to start to copy data
&reftitle.returnvalues;
Returns the total count of bytes copied.
&reftitle.changelog;
&Version;
&Description;
5.1.0
Added the offset parameter
&reftitle.examples;
A stream_copy_to_stream example
]]>
&reftitle.seealso;
copy