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