Storage/src/ReadStream.php
private function getSizeFromMetadata()
    {
        foreach ($this->stream->getMetadata('wrapper_data') as $value) {
            if (substr($value, 0, 15) == "Content-Length:") {
                return (int) substr($value, 16);
            }
        }
        return 0;
    }
private function getSizeFromMetadata()
    {
        foreach ($this->stream->getMetadata('wrapper_data') as $value) {
            if (substr($value, 0, 15) == "Content-Length:") {
                return (int) substr($value, 16);
            }
        }
        return 0;
    }
private function getSizeFromMetadata ( ) { foreach ( $ this -> stream -> getMetadata ( 'wrapper_data' ) as $ value ) { if ( substr ( $ value , 0 , 15 ) == "Content-Length:" ) { return ( int ) substr ( $ value , 16 ) ; } } return 0 ; }
Attempt to fetch the size from the Content-Length response header.
If we cannot, return 0.

@return int The Size of the stream
Attempt to fetch the size from the Content - Length response header . If we cannot return 0 .