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