protected function doRead(int $offset, int $count): string
    {
        if (($offset + $count) > $this->size) {
            $count = $this->size - $offset;
        }

        $result = '';
        for ($i = 0; $i < $count; $i++) {
            $result .= $this->content[$i + $offset] ?? ' ';
        }

        return $result;
    }
protected function doRead(int $offset, int $count): string
    {
        if (($offset + $count) > $this->size) {
            $count = $this->size - $offset;
        }

        $result = '';
        for ($i = 0; $i < $count; $i++) {
            $result .= $this->content[$i + $offset] ?? ' ';
        }

        return $result;
    }
protected function doRead ( int $ offset , int $ count ) : string { if ( ( $ offset + $ count ) > $ this -> size ) { $ count = $ this -> size - $ offset ; } $ result = '' ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ result .= $ this -> content [ $ i + $ offset ] ?? ' ' ; } return $ result ; }
actual reading of given byte count starting at given offset

@param   int  $offset
@param   int  $count
@return  string
actual reading of given byte count starting at given offset