384 references to XmlBinaryNodeType
System.Private.DataContractSerialization (384)
System\Xml\XmlBinaryReader.cs (250)
33private XmlBinaryNodeType _arrayNodeType; 98case XmlBinaryNodeType.Chars8TextWithEndElement: 103case XmlBinaryNodeType.DictionaryTextWithEndElement: 126case XmlBinaryNodeType.TrueTextWithEndElement: 131case XmlBinaryNodeType.FalseTextWithEndElement: 136case XmlBinaryNodeType.BoolTextWithEndElement: 157case XmlBinaryNodeType.ZeroTextWithEndElement: 162case XmlBinaryNodeType.OneTextWithEndElement: 167case XmlBinaryNodeType.Int8TextWithEndElement: 172case XmlBinaryNodeType.Int16TextWithEndElement: 177case XmlBinaryNodeType.Int32TextWithEndElement: 198if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.FloatTextWithEndElement) 212if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DoubleTextWithEndElement) 226if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DecimalTextWithEndElement) 240if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DateTimeTextWithEndElement) 254if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.TimeSpanTextWithEndElement) 268if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.GuidTextWithEndElement) 282if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.UniqueIdTextWithEndElement) 308XmlBinaryNodeType nodeType = GetNodeType(); 313case XmlBinaryNodeType.Bytes8TextWithEndElement: 317case XmlBinaryNodeType.Bytes16TextWithEndElement: 321case XmlBinaryNodeType.Bytes32TextWithEndElement: 325case XmlBinaryNodeType.EndElement: 329case XmlBinaryNodeType.Bytes8Text: 332case XmlBinaryNodeType.Bytes16Text: 335case XmlBinaryNodeType.Bytes32Text: 407XmlBinaryNodeType nodeType; 425case XmlBinaryNodeType.ShortElement: 433case XmlBinaryNodeType.Element: 441case XmlBinaryNodeType.ShortDictionaryElement: 449case XmlBinaryNodeType.DictionaryElement: 457case XmlBinaryNodeType.PrefixElementA: 458case XmlBinaryNodeType.PrefixElementB: 459case XmlBinaryNodeType.PrefixElementC: 460case XmlBinaryNodeType.PrefixElementD: 461case XmlBinaryNodeType.PrefixElementE: 462case XmlBinaryNodeType.PrefixElementF: 463case XmlBinaryNodeType.PrefixElementG: 464case XmlBinaryNodeType.PrefixElementH: 465case XmlBinaryNodeType.PrefixElementI: 466case XmlBinaryNodeType.PrefixElementJ: 467case XmlBinaryNodeType.PrefixElementK: 468case XmlBinaryNodeType.PrefixElementL: 469case XmlBinaryNodeType.PrefixElementM: 470case XmlBinaryNodeType.PrefixElementN: 471case XmlBinaryNodeType.PrefixElementO: 472case XmlBinaryNodeType.PrefixElementP: 473case XmlBinaryNodeType.PrefixElementQ: 474case XmlBinaryNodeType.PrefixElementR: 475case XmlBinaryNodeType.PrefixElementS: 476case XmlBinaryNodeType.PrefixElementT: 477case XmlBinaryNodeType.PrefixElementU: 478case XmlBinaryNodeType.PrefixElementV: 479case XmlBinaryNodeType.PrefixElementW: 480case XmlBinaryNodeType.PrefixElementX: 481case XmlBinaryNodeType.PrefixElementY: 482case XmlBinaryNodeType.PrefixElementZ: 484prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)XmlBinaryNodeType.PrefixElementA); 491case XmlBinaryNodeType.PrefixDictionaryElementA: 492case XmlBinaryNodeType.PrefixDictionaryElementB: 493case XmlBinaryNodeType.PrefixDictionaryElementC: 494case XmlBinaryNodeType.PrefixDictionaryElementD: 495case XmlBinaryNodeType.PrefixDictionaryElementE: 496case XmlBinaryNodeType.PrefixDictionaryElementF: 497case XmlBinaryNodeType.PrefixDictionaryElementG: 498case XmlBinaryNodeType.PrefixDictionaryElementH: 499case XmlBinaryNodeType.PrefixDictionaryElementI: 500case XmlBinaryNodeType.PrefixDictionaryElementJ: 501case XmlBinaryNodeType.PrefixDictionaryElementK: 502case XmlBinaryNodeType.PrefixDictionaryElementL: 503case XmlBinaryNodeType.PrefixDictionaryElementM: 504case XmlBinaryNodeType.PrefixDictionaryElementN: 505case XmlBinaryNodeType.PrefixDictionaryElementO: 506case XmlBinaryNodeType.PrefixDictionaryElementP: 507case XmlBinaryNodeType.PrefixDictionaryElementQ: 508case XmlBinaryNodeType.PrefixDictionaryElementR: 509case XmlBinaryNodeType.PrefixDictionaryElementS: 510case XmlBinaryNodeType.PrefixDictionaryElementT: 511case XmlBinaryNodeType.PrefixDictionaryElementU: 512case XmlBinaryNodeType.PrefixDictionaryElementV: 513case XmlBinaryNodeType.PrefixDictionaryElementW: 514case XmlBinaryNodeType.PrefixDictionaryElementX: 515case XmlBinaryNodeType.PrefixDictionaryElementY: 516case XmlBinaryNodeType.PrefixDictionaryElementZ: 518prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)XmlBinaryNodeType.PrefixDictionaryElementA); 525case XmlBinaryNodeType.EndElement: 528case XmlBinaryNodeType.Comment: 531case XmlBinaryNodeType.EmptyTextWithEndElement: 536case XmlBinaryNodeType.ZeroTextWithEndElement: 541case XmlBinaryNodeType.OneTextWithEndElement: 546case XmlBinaryNodeType.TrueTextWithEndElement: 551case XmlBinaryNodeType.FalseTextWithEndElement: 556case XmlBinaryNodeType.BoolTextWithEndElement: 561case XmlBinaryNodeType.Chars8TextWithEndElement: 567case XmlBinaryNodeType.Chars8Text: 573case XmlBinaryNodeType.Chars16TextWithEndElement: 579case XmlBinaryNodeType.Chars16Text: 585case XmlBinaryNodeType.Chars32TextWithEndElement: 591case XmlBinaryNodeType.Chars32Text: 597case XmlBinaryNodeType.UnicodeChars8TextWithEndElement: 600case XmlBinaryNodeType.UnicodeChars8Text: 603case XmlBinaryNodeType.UnicodeChars16TextWithEndElement: 606case XmlBinaryNodeType.UnicodeChars16Text: 609case XmlBinaryNodeType.UnicodeChars32TextWithEndElement: 612case XmlBinaryNodeType.UnicodeChars32Text: 615case XmlBinaryNodeType.Bytes8TextWithEndElement: 621case XmlBinaryNodeType.Bytes8Text: 627case XmlBinaryNodeType.Bytes16TextWithEndElement: 633case XmlBinaryNodeType.Bytes16Text: 639case XmlBinaryNodeType.Bytes32TextWithEndElement: 645case XmlBinaryNodeType.Bytes32Text: 651case XmlBinaryNodeType.DictionaryTextWithEndElement: 654case XmlBinaryNodeType.UniqueIdTextWithEndElement: 657case XmlBinaryNodeType.GuidTextWithEndElement: 660case XmlBinaryNodeType.DecimalTextWithEndElement: 663case XmlBinaryNodeType.Int8TextWithEndElement: 666case XmlBinaryNodeType.Int16TextWithEndElement: 669case XmlBinaryNodeType.Int32TextWithEndElement: 672case XmlBinaryNodeType.Int64TextWithEndElement: 675case XmlBinaryNodeType.UInt64TextWithEndElement: 678case XmlBinaryNodeType.FloatTextWithEndElement: 681case XmlBinaryNodeType.DoubleTextWithEndElement: 684case XmlBinaryNodeType.TimeSpanTextWithEndElement: 687case XmlBinaryNodeType.DateTimeTextWithEndElement: 690case XmlBinaryNodeType.QNameDictionaryTextWithEndElement: 693case XmlBinaryNodeType.Array: 710XmlBinaryNodeType nodeType = GetNodeType(); 711if (nodeType < XmlBinaryNodeType.MinAttribute || nodeType > XmlBinaryNodeType.MaxAttribute) 728XmlBinaryNodeType nodeType = GetNodeType(); 731case XmlBinaryNodeType.ShortAttribute: 738case XmlBinaryNodeType.Attribute: 746case XmlBinaryNodeType.ShortDictionaryAttribute: 753case XmlBinaryNodeType.DictionaryAttribute: 760case XmlBinaryNodeType.XmlnsAttribute: 767case XmlBinaryNodeType.ShortXmlnsAttribute: 774case XmlBinaryNodeType.ShortDictionaryXmlnsAttribute: 781case XmlBinaryNodeType.DictionaryXmlnsAttribute: 788case XmlBinaryNodeType.PrefixDictionaryAttributeA: 789case XmlBinaryNodeType.PrefixDictionaryAttributeB: 790case XmlBinaryNodeType.PrefixDictionaryAttributeC: 791case XmlBinaryNodeType.PrefixDictionaryAttributeD: 792case XmlBinaryNodeType.PrefixDictionaryAttributeE: 793case XmlBinaryNodeType.PrefixDictionaryAttributeF: 794case XmlBinaryNodeType.PrefixDictionaryAttributeG: 795case XmlBinaryNodeType.PrefixDictionaryAttributeH: 796case XmlBinaryNodeType.PrefixDictionaryAttributeI: 797case XmlBinaryNodeType.PrefixDictionaryAttributeJ: 798case XmlBinaryNodeType.PrefixDictionaryAttributeK: 799case XmlBinaryNodeType.PrefixDictionaryAttributeL: 800case XmlBinaryNodeType.PrefixDictionaryAttributeM: 801case XmlBinaryNodeType.PrefixDictionaryAttributeN: 802case XmlBinaryNodeType.PrefixDictionaryAttributeO: 803case XmlBinaryNodeType.PrefixDictionaryAttributeP: 804case XmlBinaryNodeType.PrefixDictionaryAttributeQ: 805case XmlBinaryNodeType.PrefixDictionaryAttributeR: 806case XmlBinaryNodeType.PrefixDictionaryAttributeS: 807case XmlBinaryNodeType.PrefixDictionaryAttributeT: 808case XmlBinaryNodeType.PrefixDictionaryAttributeU: 809case XmlBinaryNodeType.PrefixDictionaryAttributeV: 810case XmlBinaryNodeType.PrefixDictionaryAttributeW: 811case XmlBinaryNodeType.PrefixDictionaryAttributeX: 812case XmlBinaryNodeType.PrefixDictionaryAttributeY: 813case XmlBinaryNodeType.PrefixDictionaryAttributeZ: 816prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)XmlBinaryNodeType.PrefixDictionaryAttributeA); 821case XmlBinaryNodeType.PrefixAttributeA: 822case XmlBinaryNodeType.PrefixAttributeB: 823case XmlBinaryNodeType.PrefixAttributeC: 824case XmlBinaryNodeType.PrefixAttributeD: 825case XmlBinaryNodeType.PrefixAttributeE: 826case XmlBinaryNodeType.PrefixAttributeF: 827case XmlBinaryNodeType.PrefixAttributeG: 828case XmlBinaryNodeType.PrefixAttributeH: 829case XmlBinaryNodeType.PrefixAttributeI: 830case XmlBinaryNodeType.PrefixAttributeJ: 831case XmlBinaryNodeType.PrefixAttributeK: 832case XmlBinaryNodeType.PrefixAttributeL: 833case XmlBinaryNodeType.PrefixAttributeM: 834case XmlBinaryNodeType.PrefixAttributeN: 835case XmlBinaryNodeType.PrefixAttributeO: 836case XmlBinaryNodeType.PrefixAttributeP: 837case XmlBinaryNodeType.PrefixAttributeQ: 838case XmlBinaryNodeType.PrefixAttributeR: 839case XmlBinaryNodeType.PrefixAttributeS: 840case XmlBinaryNodeType.PrefixAttributeT: 841case XmlBinaryNodeType.PrefixAttributeU: 842case XmlBinaryNodeType.PrefixAttributeV: 843case XmlBinaryNodeType.PrefixAttributeW: 844case XmlBinaryNodeType.PrefixAttributeX: 845case XmlBinaryNodeType.PrefixAttributeY: 846case XmlBinaryNodeType.PrefixAttributeZ: 849prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)XmlBinaryNodeType.PrefixAttributeA); 920XmlBinaryNodeType nodeType = (withEndElement ? XmlBinaryNodeType.Chars32TextWithEndElement : XmlBinaryNodeType.Chars32Text); 985XmlBinaryNodeType nodeType = (withEndElement ? XmlBinaryNodeType.UnicodeChars32TextWithEndElement : XmlBinaryNodeType.UnicodeChars32Text); 1007XmlBinaryNodeType nodeType = (withEndElement ? XmlBinaryNodeType.Bytes32TextWithEndElement : XmlBinaryNodeType.Bytes32Text); 1012private void InsertNode(XmlBinaryNodeType nodeType, int length) 1031XmlBinaryNodeType nodeType = GetNodeType(); 1063private XmlBinaryNodeType GetNodeType() 1098private static bool IsValidArrayType(XmlBinaryNodeType nodeType) 1102case XmlBinaryNodeType.BoolTextWithEndElement: 1103case XmlBinaryNodeType.Int16TextWithEndElement: 1104case XmlBinaryNodeType.Int32TextWithEndElement: 1105case XmlBinaryNodeType.Int64TextWithEndElement: 1106case XmlBinaryNodeType.FloatTextWithEndElement: 1107case XmlBinaryNodeType.DoubleTextWithEndElement: 1108case XmlBinaryNodeType.DecimalTextWithEndElement: 1109case XmlBinaryNodeType.DateTimeTextWithEndElement: 1110case XmlBinaryNodeType.TimeSpanTextWithEndElement: 1111case XmlBinaryNodeType.GuidTextWithEndElement: 1120if (GetNodeType() == XmlBinaryNodeType.Array) // Prevent recursion 1125if (GetNodeType() == XmlBinaryNodeType.Array) // Prevent recursion 1165case XmlBinaryNodeType.BoolTextWithEndElement: 1168case XmlBinaryNodeType.Int16TextWithEndElement: 1171case XmlBinaryNodeType.Int32TextWithEndElement: 1174case XmlBinaryNodeType.Int64TextWithEndElement: 1177case XmlBinaryNodeType.FloatTextWithEndElement: 1180case XmlBinaryNodeType.DoubleTextWithEndElement: 1183case XmlBinaryNodeType.DecimalTextWithEndElement: 1186case XmlBinaryNodeType.DateTimeTextWithEndElement: 1189case XmlBinaryNodeType.GuidTextWithEndElement: 1192case XmlBinaryNodeType.TimeSpanTextWithEndElement: 1195case XmlBinaryNodeType.UniqueIdTextWithEndElement: 1215private bool IsStartArray(string localName, string namespaceUri, XmlBinaryNodeType nodeType) 1220private bool IsStartArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, XmlBinaryNodeType nodeType) 1248if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.BoolTextWithEndElement)) 1255if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.BoolTextWithEndElement)) 1271if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int16TextWithEndElement)) 1278if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int16TextWithEndElement)) 1294if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int32TextWithEndElement)) 1301if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int32TextWithEndElement)) 1317if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int64TextWithEndElement)) 1324if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.Int64TextWithEndElement)) 1340if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.FloatTextWithEndElement)) 1347if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.FloatTextWithEndElement)) 1363if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DoubleTextWithEndElement)) 1370if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DoubleTextWithEndElement)) 1386if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DecimalTextWithEndElement)) 1393if (BitConverter.IsLittleEndian && IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DecimalTextWithEndElement)) 1415if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DateTimeTextWithEndElement)) 1422if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.DateTimeTextWithEndElement)) 1451if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.GuidTextWithEndElement)) 1458if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.GuidTextWithEndElement)) 1480if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.TimeSpanTextWithEndElement)) 1487if (IsStartArray(localName, namespaceUri, XmlBinaryNodeType.TimeSpanTextWithEndElement))
System\Xml\XmlBinaryWriter.cs (96)
38Debug.Assert(XmlBinaryNodeType.MaxAttribute < XmlBinaryNodeType.MinElement && 39XmlBinaryNodeType.MaxElement < XmlBinaryNodeType.MinText && 40(int)XmlBinaryNodeType.MaxText < 256, "NodeTypes enumeration messed up"); 54private void WriteNode(XmlBinaryNodeType nodeType) 67private void WriteTextNode(XmlBinaryNodeType nodeType) 71Debug.Assert(nodeType >= XmlBinaryNodeType.MinText && nodeType <= XmlBinaryNodeType.MaxText && ((byte)nodeType & 1) == 0, "Invalid nodeType"); 85private void WriteTextNodeWithLength(XmlBinaryNodeType nodeType, int length) 87Debug.Assert(nodeType == XmlBinaryNodeType.Chars8Text || nodeType == XmlBinaryNodeType.Bytes8Text || nodeType == XmlBinaryNodeType.UnicodeChars8Text); 103private unsafe void WriteTextNodeRaw<T>(XmlBinaryNodeType nodeType, T value) 130private void WriteTextNodeWithInt8(XmlBinaryNodeType nodeType, byte value) 133private void WriteTextNodeWithInt16(XmlBinaryNodeType nodeType, short value) 136private void WriteTextNodeWithInt32(XmlBinaryNodeType nodeType, int value) 139private void WriteTextNodeWithInt64(XmlBinaryNodeType nodeType, long value) 150WriteNode(XmlBinaryNodeType.ShortElement); 159WritePrefixNode(XmlBinaryNodeType.PrefixElementA, ch - 'a'); 164WriteNode(XmlBinaryNodeType.Element); 171private void WritePrefixNode(XmlBinaryNodeType nodeType, int ch) 173WriteNode((XmlBinaryNodeType)((int)nodeType + ch)); 187WriteNode(XmlBinaryNodeType.ShortDictionaryElement); 196WritePrefixNode(XmlBinaryNodeType.PrefixDictionaryElementA, ch - 'a'); 201WriteNode(XmlBinaryNodeType.DictionaryElement); 227XmlBinaryNodeType nodeType = (XmlBinaryNodeType)buffer[_textNodeOffset]; 228Debug.Assert(nodeType >= XmlBinaryNodeType.MinText && nodeType <= XmlBinaryNodeType.MaxText && ((byte)nodeType & 1) == 0); 234WriteNode(XmlBinaryNodeType.EndElement); 242WriteNode(XmlBinaryNodeType.ShortAttribute); 250WritePrefixNode(XmlBinaryNodeType.PrefixAttributeA, ch - 'a'); 255WriteNode(XmlBinaryNodeType.Attribute); 275WriteNode(XmlBinaryNodeType.ShortDictionaryAttribute); 283WritePrefixNode(XmlBinaryNodeType.PrefixDictionaryAttributeA, ch - 'a'); 288WriteNode(XmlBinaryNodeType.DictionaryAttribute); 312WriteNode(XmlBinaryNodeType.ShortXmlnsAttribute); 317WriteNode(XmlBinaryNodeType.XmlnsAttribute); 334WriteNode(XmlBinaryNodeType.ShortDictionaryXmlnsAttribute); 339WriteNode(XmlBinaryNodeType.DictionaryXmlnsAttribute); 435WriteNode(XmlBinaryNodeType.Comment); 446WriteTextNode(XmlBinaryNodeType.EmptyText); 453WriteTextNode(XmlBinaryNodeType.TrueText); 457WriteTextNode(XmlBinaryNodeType.FalseText); 467WriteTextNode(XmlBinaryNodeType.ZeroText); 471WriteTextNode(XmlBinaryNodeType.OneText); 475WriteTextNodeWithInt8(XmlBinaryNodeType.Int8Text, (byte)value); 480WriteTextNodeWithInt16(XmlBinaryNodeType.Int16Text, (short)value); 484WriteTextNodeWithInt32(XmlBinaryNodeType.Int32Text, value); 496WriteTextNodeWithInt64(XmlBinaryNodeType.Int64Text, value); 508WriteTextNodeWithInt64(XmlBinaryNodeType.UInt64Text, (long)value); 526WriteTextNodeWithLength(XmlBinaryNodeType.Bytes8Text, length); 562WriteTextNode(XmlBinaryNodeType.DictionaryText); 623WriteTextNodeWithLength(XmlBinaryNodeType.Chars8Text, charCount); 637WriteTextNode(XmlBinaryNodeType.ZeroText); 642WriteTextNode(XmlBinaryNodeType.OneText); 658buffer[offset] = (byte)XmlBinaryNodeType.Chars8Text; 662buffer[offset] = (byte)XmlBinaryNodeType.UnicodeChars8Text; 675WriteTextNodeWithLength(XmlBinaryNodeType.UnicodeChars8Text, charCount * 2); 680WriteTextNodeWithLength(XmlBinaryNodeType.Chars8Text, byteCount); 732WriteTextNodeRaw(XmlBinaryNodeType.FloatText, f); 737span[0] = (byte)XmlBinaryNodeType.FloatText; 757WriteTextNodeRaw(XmlBinaryNodeType.DoubleText, d); 762span[0] = (byte)XmlBinaryNodeType.DoubleText; 773WriteTextNodeRaw(XmlBinaryNodeType.DecimalText, d); 782span[0] = (byte)XmlBinaryNodeType.DecimalText; 792=> WriteTextNodeWithInt64(XmlBinaryNodeType.DateTimeText, dt.ToBinary()); 801buffer[offset] = (byte)XmlBinaryNodeType.UniqueIdText; 814span[0] = (byte)XmlBinaryNodeType.GuidText; 821WriteTextNodeWithInt64(XmlBinaryNodeType.TimeSpanText, value.Ticks); 828WriteNode(XmlBinaryNodeType.StartListText); 840WriteNode(XmlBinaryNodeType.EndListText); 845WriteNode(XmlBinaryNodeType.Array); 848private void WriteArrayInfo(XmlBinaryNodeType nodeType, int count) 854public void WriteArray(XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes) 862WriteArray(XmlBinaryNodeType.BoolTextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 869WriteArray(XmlBinaryNodeType.Int16TextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 873WriteArrayInfo(XmlBinaryNodeType.Int16TextWithEndElement, items.Length); 885WriteArray(XmlBinaryNodeType.Int32TextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 889WriteArrayInfo(XmlBinaryNodeType.Int32TextWithEndElement, items.Length); 901WriteArray(XmlBinaryNodeType.Int64TextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 905WriteArrayInfo(XmlBinaryNodeType.Int64TextWithEndElement, items.Length); 917WriteArray(XmlBinaryNodeType.FloatTextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 921WriteArrayInfo(XmlBinaryNodeType.FloatTextWithEndElement, items.Length); 935WriteArray(XmlBinaryNodeType.DoubleTextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 939WriteArrayInfo(XmlBinaryNodeType.DoubleTextWithEndElement, items.Length); 953WriteArray(XmlBinaryNodeType.DecimalTextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 958WriteArrayInfo(XmlBinaryNodeType.DecimalTextWithEndElement, items.Length); 976WriteArrayInfo(XmlBinaryNodeType.DateTimeTextWithEndElement, items.Length); 987WriteArray(XmlBinaryNodeType.GuidTextWithEndElement, items.Length, MemoryMarshal.AsBytes(items)); 992WriteArrayInfo(XmlBinaryNodeType.GuidTextWithEndElement, items.Length); 1004WriteArrayInfo(XmlBinaryNodeType.TimeSpanTextWithEndElement, items.Length); 1023WriteTextNodeWithInt8(XmlBinaryNodeType.QNameDictionaryText, (byte)(ch - 'a')); 1262XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes) 1269XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes)
System\Xml\XmlBufferReader.cs (38)
1002public XmlBinaryNodeType GetNodeType() 1004return (XmlBinaryNodeType)GetByte(); 1021XmlBinaryNodeType nodeType = GetNodeType(); 1023Debug.Assert(nodeType != XmlBinaryNodeType.StartListText); 1086public void ReadValue(XmlBinaryNodeType nodeType, ValueHandle value) 1090case XmlBinaryNodeType.EmptyText: 1093case XmlBinaryNodeType.ZeroText: 1096case XmlBinaryNodeType.OneText: 1099case XmlBinaryNodeType.TrueText: 1102case XmlBinaryNodeType.FalseText: 1105case XmlBinaryNodeType.BoolText: 1108case XmlBinaryNodeType.Chars8Text: 1111case XmlBinaryNodeType.Chars16Text: 1114case XmlBinaryNodeType.Chars32Text: 1117case XmlBinaryNodeType.UnicodeChars8Text: 1120case XmlBinaryNodeType.UnicodeChars16Text: 1123case XmlBinaryNodeType.UnicodeChars32Text: 1126case XmlBinaryNodeType.Bytes8Text: 1129case XmlBinaryNodeType.Bytes16Text: 1132case XmlBinaryNodeType.Bytes32Text: 1135case XmlBinaryNodeType.DictionaryText: 1138case XmlBinaryNodeType.UniqueIdText: 1141case XmlBinaryNodeType.GuidText: 1144case XmlBinaryNodeType.DecimalText: 1147case XmlBinaryNodeType.Int8Text: 1150case XmlBinaryNodeType.Int16Text: 1153case XmlBinaryNodeType.Int32Text: 1156case XmlBinaryNodeType.Int64Text: 1159case XmlBinaryNodeType.UInt64Text: 1162case XmlBinaryNodeType.FloatText: 1165case XmlBinaryNodeType.DoubleText: 1168case XmlBinaryNodeType.TimeSpanText: 1171case XmlBinaryNodeType.DateTimeText: 1174case XmlBinaryNodeType.StartListText: 1177case XmlBinaryNodeType.QNameDictionaryText: 1206XmlBinaryNodeType nodeType = GetNodeType(); 1208if (nodeType == XmlBinaryNodeType.StartListText) 1210if (nodeType == XmlBinaryNodeType.EndListText)