3 writes to _data
System.Private.Xml (3)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
357
_data
= data;
364
_data
= new byte[XmlReader.DefaultBufferSize];
2012
_data
= data = newdata;
76 references to _data
System.Private.Xml (76)
System\Xml\BinaryXml\XmlBinaryReader.cs (76)
365
_end = stream.Read(
_data
, 0, XmlReader.DefaultBufferSize);
1071
value = 0 !=
_data
[_tokDataPos];
1994
byte[] data =
_data
;
2066
return
_data
[_pos++];
2071
int pos = _pos; byte[] data =
_data
;
2124
byte[] data =
_data
;
2173
return (BinXmlToken)
_data
[_pos];
2182
return (BinXmlToken)
_data
[_pos++];
2218
token = (BinXmlToken)
_data
[pos];
2236
BinXmlToken t = (BinXmlToken)
_data
[pos];
2328
return string.Create(cch, (
_data
, pos), static (dstChars, state) =>
3493
ReadOnlySpan<byte> data =
_data
.AsSpan(_tokDataPos, _pos - _tokDataPos);
3544
byte[] data =
_data
;
3587
scale =
_data
[_pos];
3594
scale =
_data
[_pos];
3618
byte v =
_data
[_tokDataPos];
3624
sbyte v = unchecked((sbyte)
_data
[_tokDataPos]);
3723
BinXmlSqlDecimal v = new BinXmlSqlDecimal(
_data
, _tokDataPos, _token == BinXmlToken.XSD_DECIMAL);
3810
return BinXmlDateTime.XsdKatmaiDateToDateTime(
_data
, _tokDataPos);
3813
return BinXmlDateTime.XsdKatmaiDateTimeToDateTime(
_data
, _tokDataPos);
3816
return BinXmlDateTime.XsdKatmaiTimeToDateTime(
_data
, _tokDataPos);
3819
return BinXmlDateTime.XsdKatmaiDateOffsetToDateTime(
_data
, _tokDataPos);
3822
return BinXmlDateTime.XsdKatmaiDateTimeOffsetToDateTime(
_data
, _tokDataPos);
3825
return BinXmlDateTime.XsdKatmaiTimeOffsetToDateTime(
_data
, _tokDataPos);
3837
BinXmlToken.XSD_KATMAI_DATEOFFSET => BinXmlDateTime.XsdKatmaiDateOffsetToDateTimeOffset(
_data
, _tokDataPos),
3838
BinXmlToken.XSD_KATMAI_DATETIMEOFFSET => BinXmlDateTime.XsdKatmaiDateTimeOffsetToDateTimeOffset(
_data
, _tokDataPos),
3839
BinXmlToken.XSD_KATMAI_TIMEOFFSET => BinXmlDateTime.XsdKatmaiTimeOffsetToDateTimeOffset(
_data
, _tokDataPos),
3887
return BinXmlDateTime.XsdKatmaiDateToString(
_data
, _tokDataPos);
3890
return BinXmlDateTime.XsdKatmaiDateTimeToString(
_data
, _tokDataPos);
3893
return BinXmlDateTime.XsdKatmaiTimeToString(
_data
, _tokDataPos);
3896
return BinXmlDateTime.XsdKatmaiDateOffsetToString(
_data
, _tokDataPos);
3899
return BinXmlDateTime.XsdKatmaiDateTimeOffsetToString(
_data
, _tokDataPos);
3902
return BinXmlDateTime.XsdKatmaiTimeOffsetToString(
_data
, _tokDataPos);
3923
if (0 ==
_data
[_tokDataPos])
3955
Guid v = new Guid(a, b, c,
_data
[pos + 8],
_data
[pos + 9],
_data
[pos + 10],
_data
[pos + 11],
_data
[pos + 12],
_data
[pos + 13],
_data
[pos + 14],
_data
[pos + 15]);
3974
BinXmlSqlDecimal v = new BinXmlSqlDecimal(
_data
, _tokDataPos, token == BinXmlToken.XSD_DECIMAL);
3985
return enc.GetString(
_data
, pos + 4, _tokLen - 4);
3994
return Convert.ToBase64String(
_data
, _tokDataPos, _tokLen);
3998
return BinHexEncoder.Encode(
_data
, _tokDataPos, _tokLen);
4047
return (0 !=
_data
[_tokDataPos]);
4050
return (int)
_data
[_tokDataPos];
4053
return
_data
[_tokDataPos];
4066
sbyte v = unchecked((sbyte)
_data
[_tokDataPos]);
4092
Guid v = new Guid(a, b, c,
_data
[pos + 8],
_data
[pos + 9],
_data
[pos + 10],
_data
[pos + 11],
_data
[pos + 12],
_data
[pos + 13],
_data
[pos + 14],
_data
[pos + 15]);
4118
BinXmlSqlDecimal v = new BinXmlSqlDecimal(
_data
, _tokDataPos, token == BinXmlToken.XSD_DECIMAL);
4132
return enc.GetString(
_data
, pos + 4, _tokLen - 4);
4143
Array.Copy(
_data
, _tokDataPos, data, 0, _tokLen);
4198
(0 !=
_data
[_tokDataPos]),
4204
(int)
_data
[_tokDataPos],
4210
_data
[_tokDataPos],
4238
(int)unchecked((sbyte)
_data
[_tokDataPos]),
4298
(new BinXmlSqlDecimal(
_data
, _tokDataPos, token == BinXmlToken.XSD_DECIMAL)).ToDecimal(),
4310
enc.GetString(
_data
, pos + 4, _tokLen - 4),
4323
Array.Copy(
_data
, _tokDataPos, data, 0, _tokLen);
4378
private short GetInt16(int pos) => BinaryPrimitives.ReadInt16LittleEndian(
_data
.AsSpan(pos));
4380
private ushort GetUInt16(int pos) => BinaryPrimitives.ReadUInt16LittleEndian(
_data
.AsSpan(pos));
4382
private int GetInt32(int pos) => BinaryPrimitives.ReadInt32LittleEndian(
_data
.AsSpan(pos));
4384
private uint GetUInt32(int pos) => BinaryPrimitives.ReadUInt32LittleEndian(
_data
.AsSpan(pos));
4386
private long GetInt64(int pos) => BinaryPrimitives.ReadInt64LittleEndian(
_data
.AsSpan(pos));
4388
private ulong GetUInt64(int pos) => BinaryPrimitives.ReadUInt64LittleEndian(
_data
.AsSpan(pos));
4390
private float GetSingle(int offset) => BinaryPrimitives.ReadSingleLittleEndian(
_data
.AsSpan(offset));
4392
private double GetDouble(int offset) => BinaryPrimitives.ReadDoubleLittleEndian(
_data
.AsSpan(offset));