1 write to _target
Microsoft.TemplateEngine.Core (1)
Util\ProcessorState.cs (1)
60
_target
= new StreamProxy(target, bufferSize);
32 references to _target
Microsoft.TemplateEngine.Core (32)
Util\ProcessorState.cs (32)
211
_target
.Write(CurrentBuffer, handoffBufferPosition - toWrite - matchLength, toWrite);
239
_target
.Flush();
284
_target
.Write(CurrentBuffer, bufferPositionToAdvanceTo - toWrite, toWrite);
308
_target
.Write(CurrentBuffer, handoffBufferPosition - toWrite - matchLength, toWrite);
347
_target
.Write(CurrentBuffer, CurrentBufferLength - toWrite, toWrite);
350
_target
.FlushToTarget();
357
while (
_target
.Position > _bomSize)
359
if (
_target
.Position - _bomSize < buffer.Length)
361
_target
.Position = _bomSize;
365
_target
.Position -= buffer.Length;
368
int nRead = ReadExactBytes(
_target
, buffer, 0, buffer.Length);
384
_target
.Position -= nRead - bestPos + (consume ? match.TokenLength[best] : 0);
385
_target
.SetLength(
_target
.Position);
390
if (
_target
.Position - _bomSize < buffer.Length)
392
_target
.Position = _bomSize;
396
_target
.Position -= buffer.Length;
400
if (
_target
.Position == _bomSize)
402
_target
.SetLength(_bomSize);
409
while (
_target
.Position > _bomSize)
411
if (
_target
.Position - _bomSize < buffer.Length)
413
_target
.Position = _bomSize;
417
_target
.Position -= buffer.Length;
420
int nRead = ReadExactBytes(
_target
, buffer, 0, buffer.Length);
437
_target
.SetLength(
_target
.Position);
442
if (
_target
.Position - _bomSize < buffer.Length)
444
_target
.Position = _bomSize;
448
_target
.Position -= buffer.Length;
452
if (
_target
.Position == _bomSize)
454
_target
.SetLength(_bomSize);
458
public void WriteToTarget(byte[] buffer, int offset, int count) =>
_target
.Write(buffer, offset, count);