Exemplo n.º 1
0
        protected override bool MatchesPrivate(Stream stream)
        {
            for (var i = 0; i < _maximumStartLocation; i++)
            {
                stream.Position = i;

                if (_matcher.Matches(stream, resetPosition: false))
                {
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 2
0
 public bool Matches(Stream stream)
 {
     return(_FileTypeMatcher == null || _FileTypeMatcher.Matches(stream));
 }