1 implementation of CurrentBuffer
Microsoft.TemplateEngine.Core (1)
Util\ProcessorState.cs (1)
130
public 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)
81
if (!trie.GetOperation(processor.
CurrentBuffer
, bufferLength, ref currentBufferPosition, out int token))
84
currentTokenBytes.Add(processor.
CurrentBuffer
[currentBufferPosition++]);
126
if (trie.GetOperation(processor.
CurrentBuffer
, bufferLength, ref currentBufferPosition, out token))
249
currentTokenBytes.Add(processor.
CurrentBuffer
[currentBufferPosition++]);
254
currentTokenBytes.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)
95
if (_tokens.GetOperation(_processor.
CurrentBuffer
, bufferLength, ref bufferPosition, out int token))
296
allData.Add(_processor.
CurrentBuffer
[bufferPosition]);
297
currentLiteral.Add(_processor.
CurrentBuffer
[bufferPosition]);
Expressions\Shared\SharedEvaluatorDefinition.cs (1)
172
processor.
CurrentBuffer
,
Operations\Conditional.cs (1)
393
if (evaluator.Accept(processor.
CurrentBuffer
[currentBufferPosition], ref currentBufferPosition, out token))
Operations\Include.cs (2)
71
while (!_endTokenMatcher.GetOperation(processor.
CurrentBuffer
, bufferLength, ref currentBufferPosition, out token))
73
pathBytes.Add(processor.
CurrentBuffer
[currentBufferPosition++]);
Operations\InlineMarkupConditional.cs (7)
120
fragment.Write(processor.
CurrentBuffer
, currentBufferPosition, bufferLength - currentBufferPosition);
156
int sz = bufferLength == processorState.
CurrentBuffer
.Length ? _structureTrie.MaxLength : _structureTrie.MinLength;
166
if (_structureTrie.GetOperation(processorState.
CurrentBuffer
, bufferLength, ref currentBufferPosition, out int token))
227
conditionBytes.AddRange(processorState.
CurrentBuffer
.Skip(previousPosition).Take(currentBufferPosition - previousPosition));
234
int sz = bufferLength == processorState.
CurrentBuffer
.Length ? _closeConditionTrie.MaxLength : _closeConditionTrie.MinLength;
244
if (_closeConditionTrie.GetOperation(processorState.
CurrentBuffer
, bufferLength, ref currentBufferPosition, out int token))
246
conditionBytes.AddRange(processorState.
CurrentBuffer
.Skip(previousPosition).Take(currentBufferPosition - previousPosition - _closeConditionTrie.Tokens[token].Length));
Operations\Region.cs (1)
120
if (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
"/>.