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