src/Mime/MimeDetector.php
protected function searchForBytes(array $bytes, int $offset = 0, array $mask = []): int
    {
        $limit = $this->byteCacheLen - count($bytes);

        for ($i = $offset; $i < $limit; $i++) {
            if ($this->checkForBytes($bytes, $i, $mask)) {
                return $i;
            }
        }

        return -1;
    }
protected function searchForBytes(array $bytes, int $offset = 0, array $mask = []): int
    {
        $limit = $this->byteCacheLen - count($bytes);

        for ($i = $offset; $i < $limit; $i++) {
            if ($this->checkForBytes($bytes, $i, $mask)) {
                return $i;
            }
        }

        return -1;
    }
protected function searchForBytes ( array $ bytes , int $ offset = 0 , array $ mask = [ ] ) : int { $ limit = $ this -> byteCacheLen - count ( $ bytes ) ; for ( $ i = $ offset ; $ i < $ limit ; $ i ++ ) { if ( $ this -> checkForBytes ( $ bytes , $ i , $ mask ) ) { return $ i ; } } return - 1 ; }
Returns the offset to the next position of the given byte sequence.
Returns -1 if the sequence was not found.

@param   array $bytes
@param   int   $offset
@param   array $mask
@return  int
Returns the offset to the next position of the given byte sequence . Returns - 1 if the sequence was not found .