Implemented interface member:
property
CurrentBuffer
Microsoft.TemplateEngine.Core.Contracts.IProcessorState.CurrentBuffer
2 writes to CurrentBuffer
Microsoft.TemplateEngine.Core (2)
Util\ProcessorState.cs (2)
63
CurrentBuffer
= new byte[bufferSize];
121
CurrentBuffer
= tmp;
17 references to CurrentBuffer
Microsoft.TemplateEngine.Core (17)
Util\ProcessorState.cs (17)
64
CurrentBufferLength = ReadExactBytes(source,
CurrentBuffer
, 0,
CurrentBuffer
.Length);
66
Encoding encoding = EncodingUtil.Detect(
CurrentBuffer
, CurrentBufferLength, out byte[] bom);
119
Buffer.BlockCopy(
CurrentBuffer
, CurrentBufferPosition, tmp, 0, CurrentBufferLength - CurrentBufferPosition);
160
if (CurrentBufferLength <
CurrentBuffer
.Length && bytesToPreserveInBuffer == 0)
171
Buffer.BlockCopy(
CurrentBuffer
, bufferPosition,
CurrentBuffer
, 0, bytesToPreserveInBuffer);
176
int nRead = ReadExactBytes(_source,
CurrentBuffer
, bytesToPreserveInBuffer, CurrentBufferLength - bytesToPreserveInBuffer);
199
if (_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);
472
int sz = bufferLength ==
CurrentBuffer
.Length ? match.MaxLength : match.MinLength;
482
if (match.GetOperation(
CurrentBuffer
, bufferLength, ref currentBufferPosition, false, out int token))
510
if (!trie.GetOperation(
CurrentBuffer
, bufferLength, ref currentBufferPosition, out _))
525
CurrentBufferLength = ReadExactBytes(_source,
CurrentBuffer
, 0, CurrentBufferLength);