7 writes to _bufBytesUsed
System.Private.Xml (7)
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
149
_bufBytesUsed
= 0;
859
_bufBytesUsed
+= bEnc;
863
_bufBytesUsed
= 0;
869
_bufBytesUsed
= 0;
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (3)
691
_bufBytesUsed
+= bEnc;
695
_bufBytesUsed
= 0;
701
_bufBytesUsed
= 0;
12 references to _bufBytesUsed
System.Private.Xml (12)
System\Xml\Core\XmlEncodedRawTextWriter.cs (6)
857
_encoder!.Convert(_bufChars, startOffset, endOffset - startOffset, _bufBytes!,
_bufBytesUsed
, _bufBytes!.Length -
_bufBytesUsed
, false, out chEnc, out bEnc, out _);
860
if (
_bufBytesUsed
>= (_bufBytes.Length - 16))
862
_stream!.Write(_bufBytes, 0,
_bufBytesUsed
);
866
if (writeAllToStream &&
_bufBytesUsed
> 0)
868
_stream!.Write(_bufBytes!, 0,
_bufBytesUsed
);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (6)
689
_encoder!.Convert(_bufChars, startOffset, endOffset - startOffset, _bufBytes!,
_bufBytesUsed
, _bufBytes!.Length -
_bufBytesUsed
, false, out chEnc, out bEnc, out _);
692
if (
_bufBytesUsed
>= (_bufBytes.Length - 16))
694
await _stream!.WriteAsync(_bufBytes.AsMemory(0,
_bufBytesUsed
)).ConfigureAwait(false);
698
if (writeAllToStream &&
_bufBytesUsed
> 0)
700
await _stream!.WriteAsync(_bufBytes.AsMemory(0,
_bufBytesUsed
)).ConfigureAwait(false);