7 writes to bytes
System.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (3)
2613ps.bytes = bytes; 2630ps.bytes = new byte[ bufferSize ]; 3101ps.bytes = newBytes;
System\Xml\Core\XmlTextReaderImplAsync.cs (3)
839ps.bytes = bytes; 854ps.bytes = new byte[ bufferSize ]; 1011ps.bytes = newBytes;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
85bytes = null;
39 references to bytes
System.Xml (39)
System\Xml\Core\XmlTextReaderImpl.cs (24)
2615bufferSize = ps.bytes.Length; 2629if ( ps.bytes == null || ps.bytes.Length < bufferSize ) { 2641while ( ps.bytesUsed < 4 && ps.bytes.Length - ps.bytesUsed > 0 ) { 2642int read = stream.Read( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ); 2661if ( ps.bytes[i] != preamble[i] ) { 2853Debug.Assert( ps.bytes != null ); 2859int first2Bytes = ps.bytes[0] << 8 | ps.bytes[1]; 2860int next2Bytes = ( ps.bytesUsed >= 4 ) ? ( ps.bytes[2] << 8 | ps.bytes[3] ) : 0; 3036Debug.Assert( ps.stream != null && ps.decoder != null && ps.bytes != null ); 3098if ( ps.bytes.Length - ps.bytesUsed < MaxByteSequenceLen ) { 3099byte[] newBytes = new byte[ ps.bytes.Length * 2 ]; 3100BlockCopy( ps.bytes, 0, newBytes, 0, ps.bytesUsed ); 3144BlockCopy( ps.bytes, ps.bytePos, ps.bytes, 0, bytesLeft ); 3156if ( ps.bytePos == ps.bytesUsed && ps.bytes.Length - ps.bytesUsed > 0 ) { 3157int read = ps.stream.Read( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ); 3195Debug.Assert( ps.stream != null && ps.decoder != null && ps.bytes != null ); 3208ps.decoder.Convert( ps.bytes, ps.bytePos, bytesCount, ps.chars, ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed ); 3229ps.decoder.Convert( ps.bytes, ps.bytePos + bytesDecoded, 1, ps.chars, ps.charsUsed + charsDecoded, 1, false, out bDec, out chDec, out completed );
System\Xml\Core\XmlTextReaderImplAsync.cs (15)
841bufferSize = ps.bytes.Length; 853if ( ps.bytes == null || ps.bytes.Length < bufferSize ) { 865while ( ps.bytesUsed < 4 && ps.bytes.Length - ps.bytesUsed > 0 ) { 866int read = await stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).ConfigureAwait(false); 885if ( ps.bytes[i] != preamble[i] ) { 1008if ( ps.bytes.Length - ps.bytesUsed < MaxByteSequenceLen ) { 1009byte[] newBytes = new byte[ ps.bytes.Length * 2 ]; 1010BlockCopy( ps.bytes, 0, newBytes, 0, ps.bytesUsed ); 1054BlockCopy( ps.bytes, ps.bytePos, ps.bytes, 0, bytesLeft ); 1066if ( ps.bytePos == ps.bytesUsed && ps.bytes.Length - ps.bytesUsed > 0 ) { 1067int read = await ps.stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).ConfigureAwait(false);