5 writes to length
System.Runtime.Serialization (5)
System\Xml\ValueHandle.cs (5)
131
this.
length
= length;
678
this.
length
-= actual;
688
this.
length
-= charCount;
812
this.
length
= byteCount;
826
this.
length
-= charCount * sizeof(char);
39 references to length
System.Runtime.Serialization (39)
System\Xml\ValueHandle.cs (39)
139
return bufferReader.IsWhitespaceUTF8(this.offset, this.
length
);
151
return bufferReader.IsWhitespaceUTF8(this.offset, this.
length
);
154
return bufferReader.IsWhitespaceUnicode(this.offset, this.
length
);
166
return this.
length
== 0;
227
return XmlConverter.ToBoolean(bufferReader.Buffer, offset,
length
);
269
return XmlConverter.ToInt32(bufferReader.Buffer, offset,
length
);
298
return XmlConverter.ToInt64(bufferReader.Buffer, offset,
length
);
319
return XmlConverter.ToUInt64(bufferReader.Buffer, offset,
length
);
343
return XmlConverter.ToSingle(bufferReader.Buffer, offset,
length
);
365
return XmlConverter.ToDouble(bufferReader.Buffer, offset,
length
);
383
return XmlConverter.ToDecimal(bufferReader.Buffer, offset,
length
);
395
return XmlConverter.ToDateTime(bufferReader.Buffer, offset,
length
);
405
return XmlConverter.ToUniqueId(bufferReader.Buffer, offset,
length
);
414
return XmlConverter.ToTimeSpan(bufferReader.Buffer, offset,
length
);
423
return XmlConverter.ToGuid(bufferReader.Buffer, offset,
length
);
436
byte[] buffer = new byte[
length
];
437
GetBase64(buffer, 0,
length
);
440
if (type == ValueHandleType.UTF8 && (
length
% 4) == 0)
444
int expectedLength =
length
/ 4 * 3;
445
if (
length
> 0)
447
if (bufferReader.Buffer[offset +
length
- 1] == '=')
450
if (bufferReader.Buffer[offset +
length
- 2] == '=')
455
int actualLength = Base64Encoding.GetBytes(bufferReader.Buffer, this.offset, this.
length
, buffer, 0);
548
if (this.
length
!= str.Length)
552
for (int i = 0; i < this.
length
; ++i)
598
writer.WriteEscapedText(bufferReader.Buffer, offset,
length
);
601
writer.WriteBase64Text(bufferReader.Buffer, 0, bufferReader.Buffer, offset,
length
);
620
return bufferReader.GetList(offset,
length
);
675
actual = Math.Min(this.
length
, count);
681
if (type == ValueHandleType.UTF8 && count >= 3 && (this.
length
% 4) == 0)
685
int charCount = Math.Min(count / 3 * 4, this.
length
);
717
int byteCount = this.
length
;
820
int charCount = Math.Min(count, this.
length
/ sizeof(char));
849
length = this.
length
;
859
if (
length
== 1 && bufferReader.GetByte(offset) == '1')
861
return bufferReader.GetString(offset,
length
);
867
return bufferReader.GetUnicodeString(offset,
length
);
873
return bufferReader.GetEscapedString(offset,
length
);
974
return string.Concat(PrefixHandle.GetString(PrefixHandle.GetAlphaPrefix(
length
)), ":", bufferReader.GetDictionaryString(offset));