377 references to XmlBinaryNodeType
System.Runtime.Serialization (377)
System\Xml\XmlBinaryReader.cs (250)
33
XmlBinaryNodeType
arrayNodeType;
112
case
XmlBinaryNodeType
.Chars8TextWithEndElement:
117
case
XmlBinaryNodeType
.DictionaryTextWithEndElement:
140
case
XmlBinaryNodeType
.TrueTextWithEndElement:
145
case
XmlBinaryNodeType
.FalseTextWithEndElement:
150
case
XmlBinaryNodeType
.BoolTextWithEndElement:
171
case
XmlBinaryNodeType
.ZeroTextWithEndElement:
176
case
XmlBinaryNodeType
.OneTextWithEndElement:
181
case
XmlBinaryNodeType
.Int8TextWithEndElement:
186
case
XmlBinaryNodeType
.Int16TextWithEndElement:
191
case
XmlBinaryNodeType
.Int32TextWithEndElement:
212
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.FloatTextWithEndElement)
226
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DoubleTextWithEndElement)
240
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DecimalTextWithEndElement)
254
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DateTimeTextWithEndElement)
268
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.TimeSpanTextWithEndElement)
282
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.GuidTextWithEndElement)
296
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.UniqueIdTextWithEndElement)
322
XmlBinaryNodeType
nodeType = GetNodeType();
327
case
XmlBinaryNodeType
.Bytes8TextWithEndElement:
331
case
XmlBinaryNodeType
.Bytes16TextWithEndElement:
335
case
XmlBinaryNodeType
.Bytes32TextWithEndElement:
339
case
XmlBinaryNodeType
.EndElement:
343
case
XmlBinaryNodeType
.Bytes8Text:
346
case
XmlBinaryNodeType
.Bytes16Text:
349
case
XmlBinaryNodeType
.Bytes32Text:
421
XmlBinaryNodeType
nodeType;
439
case
XmlBinaryNodeType
.ShortElement:
447
case
XmlBinaryNodeType
.Element:
455
case
XmlBinaryNodeType
.ShortDictionaryElement:
463
case
XmlBinaryNodeType
.DictionaryElement:
471
case
XmlBinaryNodeType
.PrefixElementA:
472
case
XmlBinaryNodeType
.PrefixElementB:
473
case
XmlBinaryNodeType
.PrefixElementC:
474
case
XmlBinaryNodeType
.PrefixElementD:
475
case
XmlBinaryNodeType
.PrefixElementE:
476
case
XmlBinaryNodeType
.PrefixElementF:
477
case
XmlBinaryNodeType
.PrefixElementG:
478
case
XmlBinaryNodeType
.PrefixElementH:
479
case
XmlBinaryNodeType
.PrefixElementI:
480
case
XmlBinaryNodeType
.PrefixElementJ:
481
case
XmlBinaryNodeType
.PrefixElementK:
482
case
XmlBinaryNodeType
.PrefixElementL:
483
case
XmlBinaryNodeType
.PrefixElementM:
484
case
XmlBinaryNodeType
.PrefixElementN:
485
case
XmlBinaryNodeType
.PrefixElementO:
486
case
XmlBinaryNodeType
.PrefixElementP:
487
case
XmlBinaryNodeType
.PrefixElementQ:
488
case
XmlBinaryNodeType
.PrefixElementR:
489
case
XmlBinaryNodeType
.PrefixElementS:
490
case
XmlBinaryNodeType
.PrefixElementT:
491
case
XmlBinaryNodeType
.PrefixElementU:
492
case
XmlBinaryNodeType
.PrefixElementV:
493
case
XmlBinaryNodeType
.PrefixElementW:
494
case
XmlBinaryNodeType
.PrefixElementX:
495
case
XmlBinaryNodeType
.PrefixElementY:
496
case
XmlBinaryNodeType
.PrefixElementZ:
498
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixElementA);
505
case
XmlBinaryNodeType
.PrefixDictionaryElementA:
506
case
XmlBinaryNodeType
.PrefixDictionaryElementB:
507
case
XmlBinaryNodeType
.PrefixDictionaryElementC:
508
case
XmlBinaryNodeType
.PrefixDictionaryElementD:
509
case
XmlBinaryNodeType
.PrefixDictionaryElementE:
510
case
XmlBinaryNodeType
.PrefixDictionaryElementF:
511
case
XmlBinaryNodeType
.PrefixDictionaryElementG:
512
case
XmlBinaryNodeType
.PrefixDictionaryElementH:
513
case
XmlBinaryNodeType
.PrefixDictionaryElementI:
514
case
XmlBinaryNodeType
.PrefixDictionaryElementJ:
515
case
XmlBinaryNodeType
.PrefixDictionaryElementK:
516
case
XmlBinaryNodeType
.PrefixDictionaryElementL:
517
case
XmlBinaryNodeType
.PrefixDictionaryElementM:
518
case
XmlBinaryNodeType
.PrefixDictionaryElementN:
519
case
XmlBinaryNodeType
.PrefixDictionaryElementO:
520
case
XmlBinaryNodeType
.PrefixDictionaryElementP:
521
case
XmlBinaryNodeType
.PrefixDictionaryElementQ:
522
case
XmlBinaryNodeType
.PrefixDictionaryElementR:
523
case
XmlBinaryNodeType
.PrefixDictionaryElementS:
524
case
XmlBinaryNodeType
.PrefixDictionaryElementT:
525
case
XmlBinaryNodeType
.PrefixDictionaryElementU:
526
case
XmlBinaryNodeType
.PrefixDictionaryElementV:
527
case
XmlBinaryNodeType
.PrefixDictionaryElementW:
528
case
XmlBinaryNodeType
.PrefixDictionaryElementX:
529
case
XmlBinaryNodeType
.PrefixDictionaryElementY:
530
case
XmlBinaryNodeType
.PrefixDictionaryElementZ:
532
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixDictionaryElementA);
539
case
XmlBinaryNodeType
.EndElement:
542
case
XmlBinaryNodeType
.Comment:
545
case
XmlBinaryNodeType
.EmptyTextWithEndElement:
550
case
XmlBinaryNodeType
.ZeroTextWithEndElement:
555
case
XmlBinaryNodeType
.OneTextWithEndElement:
560
case
XmlBinaryNodeType
.TrueTextWithEndElement:
565
case
XmlBinaryNodeType
.FalseTextWithEndElement:
570
case
XmlBinaryNodeType
.BoolTextWithEndElement:
575
case
XmlBinaryNodeType
.Chars8TextWithEndElement:
581
case
XmlBinaryNodeType
.Chars8Text:
587
case
XmlBinaryNodeType
.Chars16TextWithEndElement:
593
case
XmlBinaryNodeType
.Chars16Text:
599
case
XmlBinaryNodeType
.Chars32TextWithEndElement:
605
case
XmlBinaryNodeType
.Chars32Text:
611
case
XmlBinaryNodeType
.UnicodeChars8TextWithEndElement:
614
case
XmlBinaryNodeType
.UnicodeChars8Text:
617
case
XmlBinaryNodeType
.UnicodeChars16TextWithEndElement:
620
case
XmlBinaryNodeType
.UnicodeChars16Text:
623
case
XmlBinaryNodeType
.UnicodeChars32TextWithEndElement:
626
case
XmlBinaryNodeType
.UnicodeChars32Text:
629
case
XmlBinaryNodeType
.Bytes8TextWithEndElement:
635
case
XmlBinaryNodeType
.Bytes8Text:
641
case
XmlBinaryNodeType
.Bytes16TextWithEndElement:
647
case
XmlBinaryNodeType
.Bytes16Text:
653
case
XmlBinaryNodeType
.Bytes32TextWithEndElement:
659
case
XmlBinaryNodeType
.Bytes32Text:
665
case
XmlBinaryNodeType
.DictionaryTextWithEndElement:
668
case
XmlBinaryNodeType
.UniqueIdTextWithEndElement:
671
case
XmlBinaryNodeType
.GuidTextWithEndElement:
674
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
677
case
XmlBinaryNodeType
.Int8TextWithEndElement:
680
case
XmlBinaryNodeType
.Int16TextWithEndElement:
683
case
XmlBinaryNodeType
.Int32TextWithEndElement:
686
case
XmlBinaryNodeType
.Int64TextWithEndElement:
689
case
XmlBinaryNodeType
.UInt64TextWithEndElement:
692
case
XmlBinaryNodeType
.FloatTextWithEndElement:
695
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
698
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
701
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
704
case
XmlBinaryNodeType
.QNameDictionaryTextWithEndElement:
707
case
XmlBinaryNodeType
.Array:
724
XmlBinaryNodeType
nodeType = GetNodeType();
725
if (nodeType <
XmlBinaryNodeType
.MinAttribute || nodeType >
XmlBinaryNodeType
.MaxAttribute)
741
XmlBinaryNodeType
nodeType = GetNodeType();
744
case
XmlBinaryNodeType
.ShortAttribute:
751
case
XmlBinaryNodeType
.Attribute:
759
case
XmlBinaryNodeType
.ShortDictionaryAttribute:
766
case
XmlBinaryNodeType
.DictionaryAttribute:
773
case
XmlBinaryNodeType
.XmlnsAttribute:
780
case
XmlBinaryNodeType
.ShortXmlnsAttribute:
787
case
XmlBinaryNodeType
.ShortDictionaryXmlnsAttribute:
794
case
XmlBinaryNodeType
.DictionaryXmlnsAttribute:
801
case
XmlBinaryNodeType
.PrefixDictionaryAttributeA:
802
case
XmlBinaryNodeType
.PrefixDictionaryAttributeB:
803
case
XmlBinaryNodeType
.PrefixDictionaryAttributeC:
804
case
XmlBinaryNodeType
.PrefixDictionaryAttributeD:
805
case
XmlBinaryNodeType
.PrefixDictionaryAttributeE:
806
case
XmlBinaryNodeType
.PrefixDictionaryAttributeF:
807
case
XmlBinaryNodeType
.PrefixDictionaryAttributeG:
808
case
XmlBinaryNodeType
.PrefixDictionaryAttributeH:
809
case
XmlBinaryNodeType
.PrefixDictionaryAttributeI:
810
case
XmlBinaryNodeType
.PrefixDictionaryAttributeJ:
811
case
XmlBinaryNodeType
.PrefixDictionaryAttributeK:
812
case
XmlBinaryNodeType
.PrefixDictionaryAttributeL:
813
case
XmlBinaryNodeType
.PrefixDictionaryAttributeM:
814
case
XmlBinaryNodeType
.PrefixDictionaryAttributeN:
815
case
XmlBinaryNodeType
.PrefixDictionaryAttributeO:
816
case
XmlBinaryNodeType
.PrefixDictionaryAttributeP:
817
case
XmlBinaryNodeType
.PrefixDictionaryAttributeQ:
818
case
XmlBinaryNodeType
.PrefixDictionaryAttributeR:
819
case
XmlBinaryNodeType
.PrefixDictionaryAttributeS:
820
case
XmlBinaryNodeType
.PrefixDictionaryAttributeT:
821
case
XmlBinaryNodeType
.PrefixDictionaryAttributeU:
822
case
XmlBinaryNodeType
.PrefixDictionaryAttributeV:
823
case
XmlBinaryNodeType
.PrefixDictionaryAttributeW:
824
case
XmlBinaryNodeType
.PrefixDictionaryAttributeX:
825
case
XmlBinaryNodeType
.PrefixDictionaryAttributeY:
826
case
XmlBinaryNodeType
.PrefixDictionaryAttributeZ:
829
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixDictionaryAttributeA);
834
case
XmlBinaryNodeType
.PrefixAttributeA:
835
case
XmlBinaryNodeType
.PrefixAttributeB:
836
case
XmlBinaryNodeType
.PrefixAttributeC:
837
case
XmlBinaryNodeType
.PrefixAttributeD:
838
case
XmlBinaryNodeType
.PrefixAttributeE:
839
case
XmlBinaryNodeType
.PrefixAttributeF:
840
case
XmlBinaryNodeType
.PrefixAttributeG:
841
case
XmlBinaryNodeType
.PrefixAttributeH:
842
case
XmlBinaryNodeType
.PrefixAttributeI:
843
case
XmlBinaryNodeType
.PrefixAttributeJ:
844
case
XmlBinaryNodeType
.PrefixAttributeK:
845
case
XmlBinaryNodeType
.PrefixAttributeL:
846
case
XmlBinaryNodeType
.PrefixAttributeM:
847
case
XmlBinaryNodeType
.PrefixAttributeN:
848
case
XmlBinaryNodeType
.PrefixAttributeO:
849
case
XmlBinaryNodeType
.PrefixAttributeP:
850
case
XmlBinaryNodeType
.PrefixAttributeQ:
851
case
XmlBinaryNodeType
.PrefixAttributeR:
852
case
XmlBinaryNodeType
.PrefixAttributeS:
853
case
XmlBinaryNodeType
.PrefixAttributeT:
854
case
XmlBinaryNodeType
.PrefixAttributeU:
855
case
XmlBinaryNodeType
.PrefixAttributeV:
856
case
XmlBinaryNodeType
.PrefixAttributeW:
857
case
XmlBinaryNodeType
.PrefixAttributeX:
858
case
XmlBinaryNodeType
.PrefixAttributeY:
859
case
XmlBinaryNodeType
.PrefixAttributeZ:
862
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixAttributeA);
933
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.Chars32TextWithEndElement :
XmlBinaryNodeType
.Chars32Text);
998
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.UnicodeChars32TextWithEndElement :
XmlBinaryNodeType
.UnicodeChars32Text);
1020
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.Bytes32TextWithEndElement :
XmlBinaryNodeType
.Bytes32Text);
1025
void InsertNode(
XmlBinaryNodeType
nodeType, int length)
1041
XmlBinaryNodeType
nodeType = GetNodeType();
1073
XmlBinaryNodeType
GetNodeType()
1108
bool IsValidArrayType(
XmlBinaryNodeType
nodeType)
1112
case
XmlBinaryNodeType
.BoolTextWithEndElement:
1113
case
XmlBinaryNodeType
.Int16TextWithEndElement:
1114
case
XmlBinaryNodeType
.Int32TextWithEndElement:
1115
case
XmlBinaryNodeType
.Int64TextWithEndElement:
1116
case
XmlBinaryNodeType
.FloatTextWithEndElement:
1117
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
1118
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
1119
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
1120
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
1121
case
XmlBinaryNodeType
.GuidTextWithEndElement:
1130
if (GetNodeType() ==
XmlBinaryNodeType
.Array) // Prevent recursion
1135
if (GetNodeType() ==
XmlBinaryNodeType
.Array) // Prevent recursion
1175
case
XmlBinaryNodeType
.BoolTextWithEndElement:
1178
case
XmlBinaryNodeType
.Int16TextWithEndElement:
1181
case
XmlBinaryNodeType
.Int32TextWithEndElement:
1184
case
XmlBinaryNodeType
.Int64TextWithEndElement:
1187
case
XmlBinaryNodeType
.FloatTextWithEndElement:
1190
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
1193
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
1196
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
1199
case
XmlBinaryNodeType
.GuidTextWithEndElement:
1202
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
1205
case
XmlBinaryNodeType
.UniqueIdTextWithEndElement:
1225
bool IsStartArray(string localName, string namespaceUri,
XmlBinaryNodeType
nodeType)
1230
bool IsStartArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri,
XmlBinaryNodeType
nodeType)
1267
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement))
1274
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement))
1297
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement) && BitConverter.IsLittleEndian)
1304
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement) && BitConverter.IsLittleEndian)
1327
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement) && BitConverter.IsLittleEndian)
1334
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement) && BitConverter.IsLittleEndian)
1357
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement) && BitConverter.IsLittleEndian)
1364
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement) && BitConverter.IsLittleEndian)
1387
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement))
1394
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement))
1417
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement))
1424
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement))
1447
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement))
1454
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement))
1474
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DateTimeTextWithEndElement))
1481
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DateTimeTextWithEndElement))
1501
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.GuidTextWithEndElement))
1508
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.GuidTextWithEndElement))
1528
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.TimeSpanTextWithEndElement))
1535
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.TimeSpanTextWithEndElement))
System\Xml\XmlBinaryWriter.cs (89)
37
Fx.Assert(
XmlBinaryNodeType
.MaxAttribute <
XmlBinaryNodeType
.MinElement &&
38
XmlBinaryNodeType
.MaxElement <
XmlBinaryNodeType
.MinText &&
39
(int)
XmlBinaryNodeType
.MaxText < 256, "NodeTypes enumeration messed up");
53
void WriteNode(
XmlBinaryNodeType
nodeType)
66
void WriteTextNode(
XmlBinaryNodeType
nodeType)
70
Fx.Assert(nodeType >=
XmlBinaryNodeType
.MinText && nodeType <=
XmlBinaryNodeType
.MaxText && ((byte)nodeType & 1) == 0, "Invalid nodeType");
84
void WriteTextNodeWithLength(
XmlBinaryNodeType
nodeType, int length)
86
Fx.Assert(nodeType ==
XmlBinaryNodeType
.Chars8Text || nodeType ==
XmlBinaryNodeType
.Bytes8Text || nodeType ==
XmlBinaryNodeType
.UnicodeChars8Text, "");
117
void WriteTextNodeWithInt64(
XmlBinaryNodeType
nodeType, Int64 value)
148
WriteNode(
XmlBinaryNodeType
.ShortElement);
157
WritePrefixNode(
XmlBinaryNodeType
.PrefixElementA, ch - 'a');
162
WriteNode(
XmlBinaryNodeType
.Element);
169
void WritePrefixNode(
XmlBinaryNodeType
nodeType, int ch)
171
WriteNode((
XmlBinaryNodeType
)((int)nodeType + ch));
188
WriteNode(
XmlBinaryNodeType
.ShortDictionaryElement);
197
WritePrefixNode(
XmlBinaryNodeType
.PrefixDictionaryElementA, ch - 'a');
202
WriteNode(
XmlBinaryNodeType
.DictionaryElement);
228
XmlBinaryNodeType
nodeType = (
XmlBinaryNodeType
)buffer[textNodeOffset];
229
Fx.Assert(nodeType >=
XmlBinaryNodeType
.MinText && nodeType <=
XmlBinaryNodeType
.MaxText && ((byte)nodeType & 1) == 0, "");
235
WriteNode(
XmlBinaryNodeType
.EndElement);
243
WriteNode(
XmlBinaryNodeType
.ShortAttribute);
251
WritePrefixNode(
XmlBinaryNodeType
.PrefixAttributeA, ch - 'a');
256
WriteNode(
XmlBinaryNodeType
.Attribute);
279
WriteNode(
XmlBinaryNodeType
.ShortDictionaryAttribute);
287
WritePrefixNode(
XmlBinaryNodeType
.PrefixDictionaryAttributeA, ch - 'a');
292
WriteNode(
XmlBinaryNodeType
.DictionaryAttribute);
316
WriteNode(
XmlBinaryNodeType
.ShortXmlnsAttribute);
321
WriteNode(
XmlBinaryNodeType
.XmlnsAttribute);
338
WriteNode(
XmlBinaryNodeType
.ShortDictionaryXmlnsAttribute);
343
WriteNode(
XmlBinaryNodeType
.DictionaryXmlnsAttribute);
443
WriteNode(
XmlBinaryNodeType
.Comment);
454
WriteTextNode(
XmlBinaryNodeType
.EmptyText);
461
WriteTextNode(
XmlBinaryNodeType
.TrueText);
465
WriteTextNode(
XmlBinaryNodeType
.FalseText);
475
WriteTextNode(
XmlBinaryNodeType
.ZeroText);
479
WriteTextNode(
XmlBinaryNodeType
.OneText);
485
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int8Text;
495
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int16Text;
505
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int32Text;
525
WriteTextNodeWithInt64(
XmlBinaryNodeType
.Int64Text, value);
537
WriteTextNodeWithInt64(
XmlBinaryNodeType
.UInt64Text, (Int64)value);
574
WriteTextNodeWithLength(
XmlBinaryNodeType
.Bytes8Text, length);
610
WriteTextNode(
XmlBinaryNodeType
.DictionaryText);
668
WriteTextNodeWithLength(
XmlBinaryNodeType
.Chars8Text, charCount);
684
WriteTextNode(
XmlBinaryNodeType
.ZeroText);
689
WriteTextNode(
XmlBinaryNodeType
.OneText);
705
buffer[offset] = (byte)
XmlBinaryNodeType
.Chars8Text;
709
buffer[offset] = (byte)
XmlBinaryNodeType
.UnicodeChars8Text;
722
WriteTextNodeWithLength(
XmlBinaryNodeType
.UnicodeChars8Text, charCount * 2);
727
WriteTextNodeWithLength(
XmlBinaryNodeType
.Chars8Text, byteCount);
783
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.FloatText;
807
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.DoubleText;
828
buffer[offset++] = (byte)
XmlBinaryNodeType
.DecimalText;
838
WriteTextNodeWithInt64(
XmlBinaryNodeType
.DateTimeText, dt.ToBinary());
847
buffer[offset] = (byte)
XmlBinaryNodeType
.UniqueIdText;
861
buffer[offset] = (byte)
XmlBinaryNodeType
.GuidText;
868
WriteTextNodeWithInt64(
XmlBinaryNodeType
.TimeSpanText, value.Ticks);
875
WriteNode(
XmlBinaryNodeType
.StartListText);
887
WriteNode(
XmlBinaryNodeType
.EndListText);
892
WriteNode(
XmlBinaryNodeType
.Array);
895
void WriteArrayInfo(
XmlBinaryNodeType
nodeType, int count)
903
unsafe public void UnsafeWriteArray(
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
918
WriteArrayInfo(
XmlBinaryNodeType
.DateTimeTextWithEndElement, count);
927
WriteArrayInfo(
XmlBinaryNodeType
.GuidTextWithEndElement, count);
937
WriteArrayInfo(
XmlBinaryNodeType
.TimeSpanTextWithEndElement, count);
956
WriteTextNode(
XmlBinaryNodeType
.QNameDictionaryText);
1249
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
1259
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
1295
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1315
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1336
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1356
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1377
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1397
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1418
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1438
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1459
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1479
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1500
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1520
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1541
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1561
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
System\Xml\XmlBufferReader.cs (38)
1176
public
XmlBinaryNodeType
GetNodeType()
1178
return (
XmlBinaryNodeType
)GetByte();
1195
XmlBinaryNodeType
nodeType = GetNodeType();
1197
Fx.Assert(nodeType !=
XmlBinaryNodeType
.StartListText, "");
1259
public void ReadValue(
XmlBinaryNodeType
nodeType, ValueHandle value)
1263
case
XmlBinaryNodeType
.EmptyText:
1266
case
XmlBinaryNodeType
.ZeroText:
1269
case
XmlBinaryNodeType
.OneText:
1272
case
XmlBinaryNodeType
.TrueText:
1275
case
XmlBinaryNodeType
.FalseText:
1278
case
XmlBinaryNodeType
.BoolText:
1281
case
XmlBinaryNodeType
.Chars8Text:
1284
case
XmlBinaryNodeType
.Chars16Text:
1287
case
XmlBinaryNodeType
.Chars32Text:
1290
case
XmlBinaryNodeType
.UnicodeChars8Text:
1293
case
XmlBinaryNodeType
.UnicodeChars16Text:
1296
case
XmlBinaryNodeType
.UnicodeChars32Text:
1299
case
XmlBinaryNodeType
.Bytes8Text:
1302
case
XmlBinaryNodeType
.Bytes16Text:
1305
case
XmlBinaryNodeType
.Bytes32Text:
1308
case
XmlBinaryNodeType
.DictionaryText:
1311
case
XmlBinaryNodeType
.UniqueIdText:
1314
case
XmlBinaryNodeType
.GuidText:
1317
case
XmlBinaryNodeType
.DecimalText:
1320
case
XmlBinaryNodeType
.Int8Text:
1323
case
XmlBinaryNodeType
.Int16Text:
1326
case
XmlBinaryNodeType
.Int32Text:
1329
case
XmlBinaryNodeType
.Int64Text:
1332
case
XmlBinaryNodeType
.UInt64Text:
1335
case
XmlBinaryNodeType
.FloatText:
1338
case
XmlBinaryNodeType
.DoubleText:
1341
case
XmlBinaryNodeType
.TimeSpanText:
1344
case
XmlBinaryNodeType
.DateTimeText:
1347
case
XmlBinaryNodeType
.StartListText:
1350
case
XmlBinaryNodeType
.QNameDictionaryText:
1382
XmlBinaryNodeType
nodeType = GetNodeType();
1384
if (nodeType ==
XmlBinaryNodeType
.StartListText)
1386
if (nodeType ==
XmlBinaryNodeType
.EndListText)