1 implementation of CurrentBuffer
Microsoft.TemplateEngine.Core (1)
Util\ProcessorState.cs (1)
130public byte[] CurrentBuffer { get; }
24 references to CurrentBuffer
Microsoft.TemplateEngine.Core (22)
CommonOperations.cs (1)
44_ = processor.EncodingConfig.LineEndings.GetOperation(processor.CurrentBuffer, bufferLength, ref currentBufferPosition, out _);
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (6)
81if (!trie.GetOperation(processor.CurrentBuffer, bufferLength, ref currentBufferPosition, out int token)) 84currentTokenBytes.Add(processor.CurrentBuffer[currentBufferPosition++]); 126if (trie.GetOperation(processor.CurrentBuffer, bufferLength, ref currentBufferPosition, out token)) 249currentTokenBytes.Add(processor.CurrentBuffer[currentBufferPosition++]); 254currentTokenBytes.Add(processor.CurrentBuffer[currentBufferPosition++]); 271$"Malformed predicate due to unmatched quotes. InitialBuffer = {processor.Encoding.GetString(processor.CurrentBuffer)} currentTokenFamily = {currentTokenFamily} | TokenFamily.QuotedLiteral = {TokenFamily.QuotedLiteral} | TokenFamily.SingleQuotedLiteral = {TokenFamily.SingleQuotedLiteral}");
Expressions\ScopeBuilder.cs (3)
95if (_tokens.GetOperation(_processor.CurrentBuffer, bufferLength, ref bufferPosition, out int token)) 296allData.Add(_processor.CurrentBuffer[bufferPosition]); 297currentLiteral.Add(_processor.CurrentBuffer[bufferPosition]);
Expressions\Shared\SharedEvaluatorDefinition.cs (1)
172processor.CurrentBuffer,
Operations\Conditional.cs (1)
393if (evaluator.Accept(processor.CurrentBuffer[currentBufferPosition], ref currentBufferPosition, out token))
Operations\Include.cs (2)
71while (!_endTokenMatcher.GetOperation(processor.CurrentBuffer, bufferLength, ref currentBufferPosition, out token)) 73pathBytes.Add(processor.CurrentBuffer[currentBufferPosition++]);
Operations\InlineMarkupConditional.cs (7)
120fragment.Write(processor.CurrentBuffer, currentBufferPosition, bufferLength - currentBufferPosition); 156int sz = bufferLength == processorState.CurrentBuffer.Length ? _structureTrie.MaxLength : _structureTrie.MinLength; 166if (_structureTrie.GetOperation(processorState.CurrentBuffer, bufferLength, ref currentBufferPosition, out int token)) 227conditionBytes.AddRange(processorState.CurrentBuffer.Skip(previousPosition).Take(currentBufferPosition - previousPosition)); 234int sz = bufferLength == processorState.CurrentBuffer.Length ? _closeConditionTrie.MaxLength : _closeConditionTrie.MinLength; 244if (_closeConditionTrie.GetOperation(processorState.CurrentBuffer, bufferLength, ref currentBufferPosition, out int token)) 246conditionBytes.AddRange(processorState.CurrentBuffer.Skip(previousPosition).Take(currentBufferPosition - previousPosition - _closeConditionTrie.Tokens[token].Length));
Operations\Region.cs (1)
120if (processor.CurrentBuffer[i + j] != _endToken.Value[j])
Microsoft.TemplateEngine.Core.Contracts (2)
IProcessorState.cs (2)
18/// Gets the length of useful data in <see cref="CurrentBuffer"/>. 23/// Gets the current position in <see cref="CurrentBuffer"/>.