Implemented interface member:
property
CurrentBuffer
Microsoft.TemplateEngine.Core.Contracts.IProcessorState.CurrentBuffer
2 writes to CurrentBuffer
Microsoft.TemplateEngine.Core (2)
Util\ProcessorState.cs (2)
63CurrentBuffer = new byte[bufferSize]; 121CurrentBuffer = tmp;
17 references to CurrentBuffer
Microsoft.TemplateEngine.Core (17)
Util\ProcessorState.cs (17)
64CurrentBufferLength = ReadExactBytes(source, CurrentBuffer, 0, CurrentBuffer.Length); 66Encoding encoding = EncodingUtil.Detect(CurrentBuffer, CurrentBufferLength, out byte[] bom); 119Buffer.BlockCopy(CurrentBuffer, CurrentBufferPosition, tmp, 0, CurrentBufferLength - CurrentBufferPosition); 160if (CurrentBufferLength < CurrentBuffer.Length && bytesToPreserveInBuffer == 0) 171Buffer.BlockCopy(CurrentBuffer, bufferPosition, CurrentBuffer, 0, bytesToPreserveInBuffer); 176int nRead = ReadExactBytes(_source, CurrentBuffer, bytesToPreserveInBuffer, CurrentBufferLength - bytesToPreserveInBuffer); 199if (_trie.Accept(CurrentBuffer[CurrentBufferPosition], ref posedPosition, out TerminalLocation<OperationTerminal>? terminal)) 211_target.Write(CurrentBuffer, handoffBufferPosition - toWrite - matchLength, toWrite); 284_target.Write(CurrentBuffer, bufferPositionToAdvanceTo - toWrite, toWrite); 308_target.Write(CurrentBuffer, handoffBufferPosition - toWrite - matchLength, toWrite); 347_target.Write(CurrentBuffer, CurrentBufferLength - toWrite, toWrite); 472int sz = bufferLength == CurrentBuffer.Length ? match.MaxLength : match.MinLength; 482if (match.GetOperation(CurrentBuffer, bufferLength, ref currentBufferPosition, false, out int token)) 510if (!trie.GetOperation(CurrentBuffer, bufferLength, ref currentBufferPosition, out _)) 525CurrentBufferLength = ReadExactBytes(_source, CurrentBuffer, 0, CurrentBufferLength);