public static function createByString($content, $maxMemory = 2097152)
    {
        $h = \fopen('php://temp/maxmemory:' . ((int) $maxMemory), 'r+b');
        \fwrite($h, $content);
        \rewind($h);

        return new self($h, true);
    }
public static function createByString($content, $maxMemory = 2097152)
    {
        $h = \fopen('php://temp/maxmemory:' . ((int) $maxMemory), 'r+b');
        \fwrite($h, $content);
        \rewind($h);

        return new self($h, true);
    }
public static function createByString ( $ content , $ maxMemory = 2097152 ) { $ h = \ fopen ( 'php://temp/maxmemory:' . ( ( int ) $ maxMemory ) , 'r+b' ) ; \ fwrite ( $ h , $ content ) ; \ rewind ( $ h ) ; return new self ( $ h , true ) ; }
Creates a stream reader instance by a string value.

@param string $content
@param int $maxMemory
@return StreamReader
Creates a stream reader instance by a string value .