STREAM_TYPE
STREAM_TYPE = 'stream_type'
PHP stream implementation
__construct(resource $stream, integer $size = null)
resource | $stream | Stream resource to wrap |
integer | $size | Size of the stream in bytes. Only pass if the size cannot be obtained from the stream. |
if the stream is not a stream resource
getHash(\Guzzle\Stream\StreamInterface $stream, string $algo, boolean $rawOutput = false) : boolean|string
Calculate a hash of a Stream
\Guzzle\Stream\StreamInterface | $stream | Stream to calculate the hash for |
string | $algo | Hash algorithm (e.g. md5, crc32, etc) |
boolean | $rawOutput | Whether or not to use raw output |
Returns false on failure or a hash string on success