GuzzleHttpPsr7copy_to_stream
Copy the contents of a stream into another stream until the given number of bytes have been read.
Description
GuzzleHttp\Psr7\copy_to_stream( (StreamInterface) Psr\Http\Message\StreamInterface $source, (StreamInterface) Psr\Http\Message\StreamInterface $dest, (int) $maxLen = -1 );
Parameters (3)
Usage
if ( !function_exists( 'GuzzleHttp\Psr7\copy_to_stream' ) ) { require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; } // Stream to read from $source = Psr\Http\Message\StreamInterface $source; // Stream to write to $dest = Psr\Http\Message\StreamInterface $dest; // Maximum number of bytes to read. Pass -1 // to read the entire stream. $maxlen = -1; // NOTICE! Understand what this does before running. $result = GuzzleHttp\Psr7\copy_to_stream($source, $dest, $maxlen);
Defined (1)
The function is defined in the following location(s).