7 writes to bufBytesUsed
System.Xml (7)
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
167
bufBytesUsed
= 0;
785
bufBytesUsed
+= bEnc;
788
bufBytesUsed
= 0;
793
bufBytesUsed
= 0;
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (3)
557
bufBytesUsed
+= bEnc;
560
bufBytesUsed
= 0;
565
bufBytesUsed
= 0;
12 references to bufBytesUsed
System.Xml (12)
System\Xml\Core\XmlEncodedRawTextWriter.cs (6)
783
encoder.Convert( bufChars, startOffset, endOffset - startOffset, bufBytes,
bufBytesUsed
, bufBytes.Length -
bufBytesUsed
, false, out chEnc, out bEnc, out completed );
786
if (
bufBytesUsed
>= ( bufBytes.Length - 16 ) ) {
787
stream.Write( bufBytes, 0,
bufBytesUsed
);
791
if ( writeAllToStream &&
bufBytesUsed
> 0 ) {
792
stream.Write( bufBytes, 0,
bufBytesUsed
);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (6)
555
encoder.Convert( bufChars, startOffset, endOffset - startOffset, bufBytes,
bufBytesUsed
, bufBytes.Length -
bufBytesUsed
, false, out chEnc, out bEnc, out completed );
558
if (
bufBytesUsed
>= ( bufBytes.Length - 16 ) ) {
559
await stream.WriteAsync( bufBytes, 0,
bufBytesUsed
).ConfigureAwait(false);
563
if ( writeAllToStream &&
bufBytesUsed
> 0 ) {
564
await stream.WriteAsync( bufBytes, 0,
bufBytesUsed
).ConfigureAwait(false);