Пример #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);
        }
Пример #2
0
 public bool Matches(Stream stream)
 {
     return(_FileTypeMatcher == null || _FileTypeMatcher.Matches(stream));
 }