11 writes to bytesUsed
System.Xml (11)
System\Xml\Core\XmlTextReaderImpl.cs (5)
2614
ps.
bytesUsed
= byteCount;
2647
ps.
bytesUsed
+= read;
3141
ps.
bytesUsed
= 0;
3145
ps.
bytesUsed
= bytesLeft;
3161
ps.
bytesUsed
+= read;
System\Xml\Core\XmlTextReaderImplAsync.cs (5)
840
ps.
bytesUsed
= byteCount;
871
ps.
bytesUsed
+= read;
1051
ps.
bytesUsed
= 0;
1055
ps.
bytesUsed
= bytesLeft;
1071
ps.
bytesUsed
+= read;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
87
bytesUsed
= 0;
29 references to bytesUsed
System.Xml (29)
System\Xml\Core\XmlTextReaderImpl.cs (16)
2641
while ( ps.
bytesUsed
< 4 && ps.bytes.Length - ps.
bytesUsed
> 0 ) {
2642
int read = stream.Read( ps.bytes, ps.
bytesUsed
, ps.bytes.Length - ps.
bytesUsed
);
2660
for ( i = 0; i < preambleLen && i < ps.
bytesUsed
; i++ ) {
2856
if ( ps.
bytesUsed
< 2 ) {
2860
int next2Bytes = ( ps.
bytesUsed
>= 4 ) ? ( ps.bytes[2] << 8 | ps.bytes[3] ) : 0;
3097
if ( ps.
bytesUsed
- ps.bytePos < MaxByteSequenceLen ) {
3098
if ( ps.bytes.Length - ps.
bytesUsed
< MaxByteSequenceLen ) {
3100
BlockCopy( ps.bytes, 0, newBytes, 0, ps.
bytesUsed
);
3138
int bytesLeft = ps.
bytesUsed
- ps.bytePos;
3156
if ( ps.bytePos == ps.
bytesUsed
&& ps.bytes.Length - ps.
bytesUsed
> 0 ) {
3157
int read = ps.stream.Read( ps.bytes, ps.
bytesUsed
, ps.bytes.Length - ps.
bytesUsed
);
3199
int bytesCount = ps.
bytesUsed
- ps.bytePos;
System\Xml\Core\XmlTextReaderImplAsync.cs (13)
865
while ( ps.
bytesUsed
< 4 && ps.bytes.Length - ps.
bytesUsed
> 0 ) {
866
int read = await stream.ReadAsync( ps.bytes, ps.
bytesUsed
, ps.bytes.Length - ps.
bytesUsed
).ConfigureAwait(false);
884
for ( i = 0; i < preambleLen && i < ps.
bytesUsed
; i++ ) {
1007
if ( ps.
bytesUsed
- ps.bytePos < MaxByteSequenceLen ) {
1008
if ( ps.bytes.Length - ps.
bytesUsed
< MaxByteSequenceLen ) {
1010
BlockCopy( ps.bytes, 0, newBytes, 0, ps.
bytesUsed
);
1048
int bytesLeft = ps.
bytesUsed
- ps.bytePos;
1066
if ( ps.bytePos == ps.
bytesUsed
&& ps.bytes.Length - ps.
bytesUsed
> 0 ) {
1067
int read = await ps.stream.ReadAsync( ps.bytes, ps.
bytesUsed
, ps.bytes.Length - ps.
bytesUsed
).ConfigureAwait(false);