예제 #1
0
        public Stream Manipulate(Stream input)
        {
            var newStream = new PreBufferStream(input, _preBufferSize, _value)
            {
                Position = input.Position + _preBufferSize
            };

            return(newStream);
        }
예제 #2
0
        public IEnumerable <Match> ParseMatches(Stream input)
        {
            if (FindOptions.PreBufferSize > 0)
            {
                input = new PreBufferStream(input, FindOptions.PreBufferSize);
            }

            if (FindOptions.SearchBackwards)
            {
                input = new ReverseStream(input, input.Length);
            }

            return(InternalParseMatches(input.ToArray(), FindOptions.PreBufferSize));
        }