395 references to XmlBinaryNodeType
dotnet-svcutil-lib (395)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (250)
26
private
XmlBinaryNodeType
_arrayNodeType;
86
case
XmlBinaryNodeType
.Chars8TextWithEndElement:
91
case
XmlBinaryNodeType
.DictionaryTextWithEndElement:
114
case
XmlBinaryNodeType
.TrueTextWithEndElement:
119
case
XmlBinaryNodeType
.FalseTextWithEndElement:
124
case
XmlBinaryNodeType
.BoolTextWithEndElement:
145
case
XmlBinaryNodeType
.ZeroTextWithEndElement:
150
case
XmlBinaryNodeType
.OneTextWithEndElement:
155
case
XmlBinaryNodeType
.Int8TextWithEndElement:
160
case
XmlBinaryNodeType
.Int16TextWithEndElement:
165
case
XmlBinaryNodeType
.Int32TextWithEndElement:
186
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.FloatTextWithEndElement)
200
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DoubleTextWithEndElement)
214
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DecimalTextWithEndElement)
228
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.DateTimeTextWithEndElement)
242
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.TimeSpanTextWithEndElement)
256
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.GuidTextWithEndElement)
270
if (CanOptimizeReadElementContent() && GetNodeType() ==
XmlBinaryNodeType
.UniqueIdTextWithEndElement)
296
XmlBinaryNodeType
nodeType = GetNodeType();
301
case
XmlBinaryNodeType
.Bytes8TextWithEndElement:
305
case
XmlBinaryNodeType
.Bytes16TextWithEndElement:
309
case
XmlBinaryNodeType
.Bytes32TextWithEndElement:
313
case
XmlBinaryNodeType
.EndElement:
317
case
XmlBinaryNodeType
.Bytes8Text:
320
case
XmlBinaryNodeType
.Bytes16Text:
323
case
XmlBinaryNodeType
.Bytes32Text:
393
XmlBinaryNodeType
nodeType;
411
case
XmlBinaryNodeType
.ShortElement:
419
case
XmlBinaryNodeType
.Element:
427
case
XmlBinaryNodeType
.ShortDictionaryElement:
435
case
XmlBinaryNodeType
.DictionaryElement:
443
case
XmlBinaryNodeType
.PrefixElementA:
444
case
XmlBinaryNodeType
.PrefixElementB:
445
case
XmlBinaryNodeType
.PrefixElementC:
446
case
XmlBinaryNodeType
.PrefixElementD:
447
case
XmlBinaryNodeType
.PrefixElementE:
448
case
XmlBinaryNodeType
.PrefixElementF:
449
case
XmlBinaryNodeType
.PrefixElementG:
450
case
XmlBinaryNodeType
.PrefixElementH:
451
case
XmlBinaryNodeType
.PrefixElementI:
452
case
XmlBinaryNodeType
.PrefixElementJ:
453
case
XmlBinaryNodeType
.PrefixElementK:
454
case
XmlBinaryNodeType
.PrefixElementL:
455
case
XmlBinaryNodeType
.PrefixElementM:
456
case
XmlBinaryNodeType
.PrefixElementN:
457
case
XmlBinaryNodeType
.PrefixElementO:
458
case
XmlBinaryNodeType
.PrefixElementP:
459
case
XmlBinaryNodeType
.PrefixElementQ:
460
case
XmlBinaryNodeType
.PrefixElementR:
461
case
XmlBinaryNodeType
.PrefixElementS:
462
case
XmlBinaryNodeType
.PrefixElementT:
463
case
XmlBinaryNodeType
.PrefixElementU:
464
case
XmlBinaryNodeType
.PrefixElementV:
465
case
XmlBinaryNodeType
.PrefixElementW:
466
case
XmlBinaryNodeType
.PrefixElementX:
467
case
XmlBinaryNodeType
.PrefixElementY:
468
case
XmlBinaryNodeType
.PrefixElementZ:
470
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixElementA);
477
case
XmlBinaryNodeType
.PrefixDictionaryElementA:
478
case
XmlBinaryNodeType
.PrefixDictionaryElementB:
479
case
XmlBinaryNodeType
.PrefixDictionaryElementC:
480
case
XmlBinaryNodeType
.PrefixDictionaryElementD:
481
case
XmlBinaryNodeType
.PrefixDictionaryElementE:
482
case
XmlBinaryNodeType
.PrefixDictionaryElementF:
483
case
XmlBinaryNodeType
.PrefixDictionaryElementG:
484
case
XmlBinaryNodeType
.PrefixDictionaryElementH:
485
case
XmlBinaryNodeType
.PrefixDictionaryElementI:
486
case
XmlBinaryNodeType
.PrefixDictionaryElementJ:
487
case
XmlBinaryNodeType
.PrefixDictionaryElementK:
488
case
XmlBinaryNodeType
.PrefixDictionaryElementL:
489
case
XmlBinaryNodeType
.PrefixDictionaryElementM:
490
case
XmlBinaryNodeType
.PrefixDictionaryElementN:
491
case
XmlBinaryNodeType
.PrefixDictionaryElementO:
492
case
XmlBinaryNodeType
.PrefixDictionaryElementP:
493
case
XmlBinaryNodeType
.PrefixDictionaryElementQ:
494
case
XmlBinaryNodeType
.PrefixDictionaryElementR:
495
case
XmlBinaryNodeType
.PrefixDictionaryElementS:
496
case
XmlBinaryNodeType
.PrefixDictionaryElementT:
497
case
XmlBinaryNodeType
.PrefixDictionaryElementU:
498
case
XmlBinaryNodeType
.PrefixDictionaryElementV:
499
case
XmlBinaryNodeType
.PrefixDictionaryElementW:
500
case
XmlBinaryNodeType
.PrefixDictionaryElementX:
501
case
XmlBinaryNodeType
.PrefixDictionaryElementY:
502
case
XmlBinaryNodeType
.PrefixDictionaryElementZ:
504
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixDictionaryElementA);
511
case
XmlBinaryNodeType
.EndElement:
514
case
XmlBinaryNodeType
.Comment:
517
case
XmlBinaryNodeType
.EmptyTextWithEndElement:
522
case
XmlBinaryNodeType
.ZeroTextWithEndElement:
527
case
XmlBinaryNodeType
.OneTextWithEndElement:
532
case
XmlBinaryNodeType
.TrueTextWithEndElement:
537
case
XmlBinaryNodeType
.FalseTextWithEndElement:
542
case
XmlBinaryNodeType
.BoolTextWithEndElement:
547
case
XmlBinaryNodeType
.Chars8TextWithEndElement:
553
case
XmlBinaryNodeType
.Chars8Text:
559
case
XmlBinaryNodeType
.Chars16TextWithEndElement:
565
case
XmlBinaryNodeType
.Chars16Text:
571
case
XmlBinaryNodeType
.Chars32TextWithEndElement:
577
case
XmlBinaryNodeType
.Chars32Text:
583
case
XmlBinaryNodeType
.UnicodeChars8TextWithEndElement:
586
case
XmlBinaryNodeType
.UnicodeChars8Text:
589
case
XmlBinaryNodeType
.UnicodeChars16TextWithEndElement:
592
case
XmlBinaryNodeType
.UnicodeChars16Text:
595
case
XmlBinaryNodeType
.UnicodeChars32TextWithEndElement:
598
case
XmlBinaryNodeType
.UnicodeChars32Text:
601
case
XmlBinaryNodeType
.Bytes8TextWithEndElement:
607
case
XmlBinaryNodeType
.Bytes8Text:
613
case
XmlBinaryNodeType
.Bytes16TextWithEndElement:
619
case
XmlBinaryNodeType
.Bytes16Text:
625
case
XmlBinaryNodeType
.Bytes32TextWithEndElement:
631
case
XmlBinaryNodeType
.Bytes32Text:
637
case
XmlBinaryNodeType
.DictionaryTextWithEndElement:
640
case
XmlBinaryNodeType
.UniqueIdTextWithEndElement:
643
case
XmlBinaryNodeType
.GuidTextWithEndElement:
646
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
649
case
XmlBinaryNodeType
.Int8TextWithEndElement:
652
case
XmlBinaryNodeType
.Int16TextWithEndElement:
655
case
XmlBinaryNodeType
.Int32TextWithEndElement:
658
case
XmlBinaryNodeType
.Int64TextWithEndElement:
661
case
XmlBinaryNodeType
.UInt64TextWithEndElement:
664
case
XmlBinaryNodeType
.FloatTextWithEndElement:
667
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
670
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
673
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
676
case
XmlBinaryNodeType
.QNameDictionaryTextWithEndElement:
679
case
XmlBinaryNodeType
.Array:
696
XmlBinaryNodeType
nodeType = GetNodeType();
697
if (nodeType <
XmlBinaryNodeType
.MinAttribute || nodeType >
XmlBinaryNodeType
.MaxAttribute)
713
XmlBinaryNodeType
nodeType = GetNodeType();
716
case
XmlBinaryNodeType
.ShortAttribute:
723
case
XmlBinaryNodeType
.Attribute:
731
case
XmlBinaryNodeType
.ShortDictionaryAttribute:
738
case
XmlBinaryNodeType
.DictionaryAttribute:
745
case
XmlBinaryNodeType
.XmlnsAttribute:
752
case
XmlBinaryNodeType
.ShortXmlnsAttribute:
759
case
XmlBinaryNodeType
.ShortDictionaryXmlnsAttribute:
766
case
XmlBinaryNodeType
.DictionaryXmlnsAttribute:
773
case
XmlBinaryNodeType
.PrefixDictionaryAttributeA:
774
case
XmlBinaryNodeType
.PrefixDictionaryAttributeB:
775
case
XmlBinaryNodeType
.PrefixDictionaryAttributeC:
776
case
XmlBinaryNodeType
.PrefixDictionaryAttributeD:
777
case
XmlBinaryNodeType
.PrefixDictionaryAttributeE:
778
case
XmlBinaryNodeType
.PrefixDictionaryAttributeF:
779
case
XmlBinaryNodeType
.PrefixDictionaryAttributeG:
780
case
XmlBinaryNodeType
.PrefixDictionaryAttributeH:
781
case
XmlBinaryNodeType
.PrefixDictionaryAttributeI:
782
case
XmlBinaryNodeType
.PrefixDictionaryAttributeJ:
783
case
XmlBinaryNodeType
.PrefixDictionaryAttributeK:
784
case
XmlBinaryNodeType
.PrefixDictionaryAttributeL:
785
case
XmlBinaryNodeType
.PrefixDictionaryAttributeM:
786
case
XmlBinaryNodeType
.PrefixDictionaryAttributeN:
787
case
XmlBinaryNodeType
.PrefixDictionaryAttributeO:
788
case
XmlBinaryNodeType
.PrefixDictionaryAttributeP:
789
case
XmlBinaryNodeType
.PrefixDictionaryAttributeQ:
790
case
XmlBinaryNodeType
.PrefixDictionaryAttributeR:
791
case
XmlBinaryNodeType
.PrefixDictionaryAttributeS:
792
case
XmlBinaryNodeType
.PrefixDictionaryAttributeT:
793
case
XmlBinaryNodeType
.PrefixDictionaryAttributeU:
794
case
XmlBinaryNodeType
.PrefixDictionaryAttributeV:
795
case
XmlBinaryNodeType
.PrefixDictionaryAttributeW:
796
case
XmlBinaryNodeType
.PrefixDictionaryAttributeX:
797
case
XmlBinaryNodeType
.PrefixDictionaryAttributeY:
798
case
XmlBinaryNodeType
.PrefixDictionaryAttributeZ:
801
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixDictionaryAttributeA);
806
case
XmlBinaryNodeType
.PrefixAttributeA:
807
case
XmlBinaryNodeType
.PrefixAttributeB:
808
case
XmlBinaryNodeType
.PrefixAttributeC:
809
case
XmlBinaryNodeType
.PrefixAttributeD:
810
case
XmlBinaryNodeType
.PrefixAttributeE:
811
case
XmlBinaryNodeType
.PrefixAttributeF:
812
case
XmlBinaryNodeType
.PrefixAttributeG:
813
case
XmlBinaryNodeType
.PrefixAttributeH:
814
case
XmlBinaryNodeType
.PrefixAttributeI:
815
case
XmlBinaryNodeType
.PrefixAttributeJ:
816
case
XmlBinaryNodeType
.PrefixAttributeK:
817
case
XmlBinaryNodeType
.PrefixAttributeL:
818
case
XmlBinaryNodeType
.PrefixAttributeM:
819
case
XmlBinaryNodeType
.PrefixAttributeN:
820
case
XmlBinaryNodeType
.PrefixAttributeO:
821
case
XmlBinaryNodeType
.PrefixAttributeP:
822
case
XmlBinaryNodeType
.PrefixAttributeQ:
823
case
XmlBinaryNodeType
.PrefixAttributeR:
824
case
XmlBinaryNodeType
.PrefixAttributeS:
825
case
XmlBinaryNodeType
.PrefixAttributeT:
826
case
XmlBinaryNodeType
.PrefixAttributeU:
827
case
XmlBinaryNodeType
.PrefixAttributeV:
828
case
XmlBinaryNodeType
.PrefixAttributeW:
829
case
XmlBinaryNodeType
.PrefixAttributeX:
830
case
XmlBinaryNodeType
.PrefixAttributeY:
831
case
XmlBinaryNodeType
.PrefixAttributeZ:
834
prefix = PrefixHandle.GetAlphaPrefix((int)nodeType - (int)
XmlBinaryNodeType
.PrefixAttributeA);
903
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.Chars32TextWithEndElement :
XmlBinaryNodeType
.Chars32Text);
968
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.UnicodeChars32TextWithEndElement :
XmlBinaryNodeType
.UnicodeChars32Text);
990
XmlBinaryNodeType
nodeType = (withEndElement ?
XmlBinaryNodeType
.Bytes32TextWithEndElement :
XmlBinaryNodeType
.Bytes32Text);
995
private void InsertNode(
XmlBinaryNodeType
nodeType, int length)
1011
XmlBinaryNodeType
nodeType = GetNodeType();
1043
private
XmlBinaryNodeType
GetNodeType()
1078
private bool IsValidArrayType(
XmlBinaryNodeType
nodeType)
1082
case
XmlBinaryNodeType
.BoolTextWithEndElement:
1083
case
XmlBinaryNodeType
.Int16TextWithEndElement:
1084
case
XmlBinaryNodeType
.Int32TextWithEndElement:
1085
case
XmlBinaryNodeType
.Int64TextWithEndElement:
1086
case
XmlBinaryNodeType
.FloatTextWithEndElement:
1087
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
1088
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
1089
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
1090
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
1091
case
XmlBinaryNodeType
.GuidTextWithEndElement:
1100
if (GetNodeType() ==
XmlBinaryNodeType
.Array) // Prevent recursion
1105
if (GetNodeType() ==
XmlBinaryNodeType
.Array) // Prevent recursion
1145
case
XmlBinaryNodeType
.BoolTextWithEndElement:
1148
case
XmlBinaryNodeType
.Int16TextWithEndElement:
1151
case
XmlBinaryNodeType
.Int32TextWithEndElement:
1154
case
XmlBinaryNodeType
.Int64TextWithEndElement:
1157
case
XmlBinaryNodeType
.FloatTextWithEndElement:
1160
case
XmlBinaryNodeType
.DoubleTextWithEndElement:
1163
case
XmlBinaryNodeType
.DecimalTextWithEndElement:
1166
case
XmlBinaryNodeType
.DateTimeTextWithEndElement:
1169
case
XmlBinaryNodeType
.GuidTextWithEndElement:
1172
case
XmlBinaryNodeType
.TimeSpanTextWithEndElement:
1175
case
XmlBinaryNodeType
.UniqueIdTextWithEndElement:
1195
private bool IsStartArray(string localName, string namespaceUri,
XmlBinaryNodeType
nodeType)
1200
private bool IsStartArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri,
XmlBinaryNodeType
nodeType)
1239
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement))
1246
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement))
1271
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement) && BitConverter.IsLittleEndian)
1278
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement) && BitConverter.IsLittleEndian)
1303
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement) && BitConverter.IsLittleEndian)
1310
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement) && BitConverter.IsLittleEndian)
1335
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement) && BitConverter.IsLittleEndian)
1342
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement) && BitConverter.IsLittleEndian)
1367
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement))
1374
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement))
1399
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement))
1406
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement))
1431
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement))
1438
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement))
1458
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DateTimeTextWithEndElement))
1465
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.DateTimeTextWithEndElement))
1485
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.GuidTextWithEndElement))
1492
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.GuidTextWithEndElement))
1512
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.TimeSpanTextWithEndElement))
1519
if (IsStartArray(localName, namespaceUri,
XmlBinaryNodeType
.TimeSpanTextWithEndElement))
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (89)
36
DiagnosticUtility.DebugAssert(
XmlBinaryNodeType
.MaxAttribute <
XmlBinaryNodeType
.MinElement &&
37
XmlBinaryNodeType
.MaxElement <
XmlBinaryNodeType
.MinText &&
38
(int)
XmlBinaryNodeType
.MaxText < 256, "NodeTypes enumeration messed up");
52
private void WriteNode(
XmlBinaryNodeType
nodeType)
65
private void WriteTextNode(
XmlBinaryNodeType
nodeType)
69
DiagnosticUtility.DebugAssert(nodeType >=
XmlBinaryNodeType
.MinText && nodeType <=
XmlBinaryNodeType
.MaxText && ((byte)nodeType & 1) == 0, "Invalid nodeType");
83
private void WriteTextNodeWithLength(
XmlBinaryNodeType
nodeType, int length)
85
DiagnosticUtility.DebugAssert(nodeType ==
XmlBinaryNodeType
.Chars8Text || nodeType ==
XmlBinaryNodeType
.Bytes8Text || nodeType ==
XmlBinaryNodeType
.UnicodeChars8Text, "");
116
private void WriteTextNodeWithInt64(
XmlBinaryNodeType
nodeType, Int64 value)
147
WriteNode(
XmlBinaryNodeType
.ShortElement);
156
WritePrefixNode(
XmlBinaryNodeType
.PrefixElementA, ch - 'a');
161
WriteNode(
XmlBinaryNodeType
.Element);
168
private void WritePrefixNode(
XmlBinaryNodeType
nodeType, int ch)
170
WriteNode((
XmlBinaryNodeType
)((int)nodeType + ch));
184
WriteNode(
XmlBinaryNodeType
.ShortDictionaryElement);
193
WritePrefixNode(
XmlBinaryNodeType
.PrefixDictionaryElementA, ch - 'a');
198
WriteNode(
XmlBinaryNodeType
.DictionaryElement);
224
XmlBinaryNodeType
nodeType = (
XmlBinaryNodeType
)buffer[_textNodeOffset];
225
DiagnosticUtility.DebugAssert(nodeType >=
XmlBinaryNodeType
.MinText && nodeType <=
XmlBinaryNodeType
.MaxText && ((byte)nodeType & 1) == 0, "");
231
WriteNode(
XmlBinaryNodeType
.EndElement);
239
WriteNode(
XmlBinaryNodeType
.ShortAttribute);
247
WritePrefixNode(
XmlBinaryNodeType
.PrefixAttributeA, ch - 'a');
252
WriteNode(
XmlBinaryNodeType
.Attribute);
272
WriteNode(
XmlBinaryNodeType
.ShortDictionaryAttribute);
280
WritePrefixNode(
XmlBinaryNodeType
.PrefixDictionaryAttributeA, ch - 'a');
285
WriteNode(
XmlBinaryNodeType
.DictionaryAttribute);
309
WriteNode(
XmlBinaryNodeType
.ShortXmlnsAttribute);
314
WriteNode(
XmlBinaryNodeType
.XmlnsAttribute);
331
WriteNode(
XmlBinaryNodeType
.ShortDictionaryXmlnsAttribute);
336
WriteNode(
XmlBinaryNodeType
.DictionaryXmlnsAttribute);
442
WriteNode(
XmlBinaryNodeType
.Comment);
453
WriteTextNode(
XmlBinaryNodeType
.EmptyText);
460
WriteTextNode(
XmlBinaryNodeType
.TrueText);
464
WriteTextNode(
XmlBinaryNodeType
.FalseText);
474
WriteTextNode(
XmlBinaryNodeType
.ZeroText);
478
WriteTextNode(
XmlBinaryNodeType
.OneText);
484
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int8Text;
493
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int16Text;
503
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.Int32Text;
523
WriteTextNodeWithInt64(
XmlBinaryNodeType
.Int64Text, value);
535
WriteTextNodeWithInt64(
XmlBinaryNodeType
.UInt64Text, (Int64)value);
572
WriteTextNodeWithLength(
XmlBinaryNodeType
.Bytes8Text, length);
608
WriteTextNode(
XmlBinaryNodeType
.DictionaryText);
670
WriteTextNodeWithLength(
XmlBinaryNodeType
.Chars8Text, charCount);
689
WriteTextNode(
XmlBinaryNodeType
.ZeroText);
694
WriteTextNode(
XmlBinaryNodeType
.OneText);
710
buffer[offset] = (byte)
XmlBinaryNodeType
.Chars8Text;
714
buffer[offset] = (byte)
XmlBinaryNodeType
.UnicodeChars8Text;
727
WriteTextNodeWithLength(
XmlBinaryNodeType
.UnicodeChars8Text, charCount * 2);
732
WriteTextNodeWithLength(
XmlBinaryNodeType
.Chars8Text, byteCount);
790
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.FloatText;
816
buffer[offset + 0] = (byte)
XmlBinaryNodeType
.DoubleText;
839
buffer[offset++] = (byte)
XmlBinaryNodeType
.DecimalText;
849
WriteTextNodeWithInt64(
XmlBinaryNodeType
.DateTimeText, ToBinary(dt));
878
buffer[offset] = (byte)
XmlBinaryNodeType
.UniqueIdText;
892
buffer[offset] = (byte)
XmlBinaryNodeType
.GuidText;
899
WriteTextNodeWithInt64(
XmlBinaryNodeType
.TimeSpanText, value.Ticks);
906
WriteNode(
XmlBinaryNodeType
.StartListText);
918
WriteNode(
XmlBinaryNodeType
.EndListText);
923
WriteNode(
XmlBinaryNodeType
.Array);
926
private void WriteArrayInfo(
XmlBinaryNodeType
nodeType, int count)
937
unsafe public void UnsafeWriteArray(
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
955
WriteArrayInfo(
XmlBinaryNodeType
.DateTimeTextWithEndElement, count);
964
WriteArrayInfo(
XmlBinaryNodeType
.GuidTextWithEndElement, count);
974
WriteArrayInfo(
XmlBinaryNodeType
.TimeSpanTextWithEndElement, count);
993
WriteTextNode(
XmlBinaryNodeType
.QNameDictionaryText);
1247
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
1260
XmlBinaryNodeType
nodeType, int count, byte* array, byte* arrayMax)
1295
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1314
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.BoolTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1334
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1353
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int16TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1373
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1392
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int32TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1412
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1431
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.Int64TextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1451
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1470
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.FloatTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1490
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1509
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DoubleTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1529
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
1548
UnsafeWriteArray(prefix, localName, namespaceUri,
XmlBinaryNodeType
.DecimalTextWithEndElement, count, (byte*)items, (byte*)&items[count]);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (38)
1148
public
XmlBinaryNodeType
GetNodeType()
1150
return (
XmlBinaryNodeType
)GetByte();
1167
XmlBinaryNodeType
nodeType = GetNodeType();
1169
DiagnosticUtility.DebugAssert(nodeType !=
XmlBinaryNodeType
.StartListText, "");
1231
public void ReadValue(
XmlBinaryNodeType
nodeType, ValueHandle value)
1235
case
XmlBinaryNodeType
.EmptyText:
1238
case
XmlBinaryNodeType
.ZeroText:
1241
case
XmlBinaryNodeType
.OneText:
1244
case
XmlBinaryNodeType
.TrueText:
1247
case
XmlBinaryNodeType
.FalseText:
1250
case
XmlBinaryNodeType
.BoolText:
1253
case
XmlBinaryNodeType
.Chars8Text:
1256
case
XmlBinaryNodeType
.Chars16Text:
1259
case
XmlBinaryNodeType
.Chars32Text:
1262
case
XmlBinaryNodeType
.UnicodeChars8Text:
1265
case
XmlBinaryNodeType
.UnicodeChars16Text:
1268
case
XmlBinaryNodeType
.UnicodeChars32Text:
1271
case
XmlBinaryNodeType
.Bytes8Text:
1274
case
XmlBinaryNodeType
.Bytes16Text:
1277
case
XmlBinaryNodeType
.Bytes32Text:
1280
case
XmlBinaryNodeType
.DictionaryText:
1283
case
XmlBinaryNodeType
.UniqueIdText:
1286
case
XmlBinaryNodeType
.GuidText:
1289
case
XmlBinaryNodeType
.DecimalText:
1292
case
XmlBinaryNodeType
.Int8Text:
1295
case
XmlBinaryNodeType
.Int16Text:
1298
case
XmlBinaryNodeType
.Int32Text:
1301
case
XmlBinaryNodeType
.Int64Text:
1304
case
XmlBinaryNodeType
.UInt64Text:
1307
case
XmlBinaryNodeType
.FloatText:
1310
case
XmlBinaryNodeType
.DoubleText:
1313
case
XmlBinaryNodeType
.TimeSpanText:
1316
case
XmlBinaryNodeType
.DateTimeText:
1319
case
XmlBinaryNodeType
.StartListText:
1322
case
XmlBinaryNodeType
.QNameDictionaryText:
1354
XmlBinaryNodeType
nodeType = GetNodeType();
1356
if (nodeType ==
XmlBinaryNodeType
.StartListText)
1358
if (nodeType ==
XmlBinaryNodeType
.EndListText)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (18)
959
this.AppendNode(
XmlBinaryNodeType
.PrefixDictionaryElementA + GetPrefixOffset(prefix));
965
this.AppendNode(
XmlBinaryNodeType
.DictionaryXmlnsAttribute);
972
this.AppendNode(
XmlBinaryNodeType
.PrefixDictionaryAttributeA + GetPrefixOffset(prefix));
976
this.AppendNode(
XmlBinaryNodeType
.OneText);
980
this.AppendNode(
XmlBinaryNodeType
.Chars8Text);
987
this.AppendNode(
XmlBinaryNodeType
.DictionaryAttribute);
990
this.AppendNode(
XmlBinaryNodeType
.Chars8Text);
996
this.AppendNode(
XmlBinaryNodeType
.DictionaryTextWithEndElement);
1002
this.AppendNode(
XmlBinaryNodeType
.DictionaryTextWithEndElement);
1007
this.AppendNode(
XmlBinaryNodeType
.UniqueIdTextWithEndElement);
1012
this.AppendNode(
XmlBinaryNodeType
.EndElement);
1033
private void AppendNode(
XmlBinaryNodeType
value)
1147
const
XmlBinaryNodeType
minAttribute =
XmlBinaryNodeType
.ShortAttribute;
1148
const
XmlBinaryNodeType
maxAttribute =
XmlBinaryNodeType
.DictionaryAttribute;
1153
XmlBinaryNodeType
nodeType = (
XmlBinaryNodeType
)buffer[offset];