src/Tus/Client.php
protected function getData(int $offset, int $bytes) : string
    {
        $file   = new File;
        $handle = $file->open($this->getFilePath(), $file::READ_BINARY);

        $file->seek($handle, $offset);

        $data = $file->read($handle, $bytes);

        $file->close($handle);

        return (string) $data;
    }
protected function getData(int $offset, int $bytes) : string
    {
        $file   = new File;
        $handle = $file->open($this->getFilePath(), $file::READ_BINARY);

        $file->seek($handle, $offset);

        $data = $file->read($handle, $bytes);

        $file->close($handle);

        return (string) $data;
    }
protected function getData ( int $ offset , int $ bytes ) : string { $ file = new File ; $ handle = $ file -> open ( $ this -> getFilePath ( ) , $ file :: READ_BINARY ) ; $ file -> seek ( $ handle , $ offset ) ; $ data = $ file -> read ( $ handle , $ bytes ) ; $ file -> close ( $ handle ) ; return ( string ) $ data ; }
Get X bytes of data from file.

@param int $offset
@param int $bytes

@return string
Get X bytes of data from file .