5 writes to _length
System.Private.DataContractSerialization (5)
System\Xml\ValueHandle.cs (5)
118
_length
= length;
666
_length
-= actual;
676
_length
-= charCount;
799
_length
= byteCount;
813
_length
-= charCount * sizeof(char);
39 references to _length
System.Private.DataContractSerialization (39)
System\Xml\ValueHandle.cs (39)
126
return _bufferReader.IsWhitespaceUTF8(_offset,
_length
);
136
return _bufferReader.IsWhitespaceUTF8(_offset,
_length
);
139
return _bufferReader.IsWhitespaceUnicode(_offset,
_length
);
151
return
_length
== 0;
212
return XmlConverter.ToBoolean(_bufferReader.Buffer, _offset,
_length
);
254
return XmlConverter.ToInt32(_bufferReader.Buffer, _offset,
_length
);
283
return XmlConverter.ToInt64(_bufferReader.Buffer, _offset,
_length
);
304
return XmlConverter.ToUInt64(_bufferReader.Buffer, _offset,
_length
);
331
return XmlConverter.ToSingle(_bufferReader.Buffer, _offset,
_length
);
353
return XmlConverter.ToDouble(_bufferReader.Buffer, _offset,
_length
);
371
return XmlConverter.ToDecimal(_bufferReader.Buffer, _offset,
_length
);
383
return XmlConverter.ToDateTime(_bufferReader.Buffer, _offset,
_length
);
393
return XmlConverter.ToUniqueId(_bufferReader.Buffer, _offset,
_length
);
402
return XmlConverter.ToTimeSpan(_bufferReader.Buffer, _offset,
_length
);
411
return XmlConverter.ToGuid(_bufferReader.Buffer, _offset,
_length
);
424
byte[] buffer = new byte[
_length
];
425
GetBase64(buffer, 0,
_length
);
428
if (_type == ValueHandleType.UTF8 && (
_length
% 4) == 0)
432
int expectedLength =
_length
/ 4 * 3;
433
if (
_length
> 0)
435
if (_bufferReader.Buffer[_offset +
_length
- 1] == '=')
438
if (_bufferReader.Buffer[_offset +
_length
- 2] == '=')
443
int actualLength = DataContractSerializer.Base64Encoding.GetBytes(_bufferReader.Buffer, _offset,
_length
, buffer, 0);
536
if (
_length
!= str.Length)
540
for (int i = 0; i <
_length
; ++i)
586
writer.WriteEscapedText(_bufferReader.Buffer, _offset,
_length
);
589
writer.WriteBase64Text(_bufferReader.Buffer, 0, _bufferReader.Buffer, _offset,
_length
);
608
return _bufferReader.GetList(_offset,
_length
);
663
actual = Math.Min(
_length
, count);
669
if (_type == ValueHandleType.UTF8 && count >= 3 && (
_length
% 4) == 0)
673
int charCount = Math.Min(count / 3 * 4,
_length
);
705
int byteCount =
_length
;
807
int charCount = Math.Min(count,
_length
/ sizeof(char));
836
length =
_length
;
845
if (
_length
== 1 && _bufferReader.GetByte(_offset) == '1')
847
return _bufferReader.GetString(_offset,
_length
);
853
return _bufferReader.GetUnicodeString(_offset,
_length
);
859
return _bufferReader.GetEscapedString(_offset,
_length
);
955
return string.Concat(PrefixHandle.GetString(PrefixHandle.GetAlphaPrefix(
_length
)), ":", _bufferReader.GetDictionaryString(_offset));