98 public override string Name
310 if (i < attributeCount)
374 if (i < attributeCount)
470 case State.Interactive:
488 case State.EndOfFile:
491 case State.PopNamespaceScope:
493 goto case State.ClearNsAttributes;
494 case State.ClearNsAttributes:
497 goto case State.Interactive;
498 case State.ReadElementContentAsBase64:
499 case State.ReadElementContentAsBinHex:
505 case State.ReadContentAsBase64:
506 case State.ReadContentAsBinHex:
556 case State.Interactive:
582 case State.EndOfFile:
585 case State.PopNamespaceScope:
587 goto case State.ClearNsAttributes;
588 case State.ClearNsAttributes:
591 goto case State.Interactive;
592 case State.ReadElementContentAsBase64:
593 case State.ReadElementContentAsBinHex:
599 case State.ReadContentAsBase64:
600 case State.ReadContentAsBinHex:
777 case State.EndOfFile:
780 case State.PopNamespaceScope:
781 case State.ClearNsAttributes:
821 case State.Interactive:
823 goto case State.ReadContentAsBase64;
824 case State.ReadContentAsBase64:
834 case State.ReadElementContentAsBase64:
835 case State.ReadElementContentAsBinHex:
836 case State.ReadContentAsBinHex:
849 case State.EndOfFile:
852 case State.Interactive:
853 case State.PopNamespaceScope:
854 case State.ClearNsAttributes:
859 goto case State.ReadElementContentAsBase64;
860 case State.ReadElementContentAsBase64:
863 if (num > 0 ||
count == 0)
884 case State.ReadElementContentAsBinHex:
885 case State.ReadContentAsBase64:
886 case State.ReadContentAsBinHex:
899 case State.EndOfFile:
902 case State.PopNamespaceScope:
903 case State.ClearNsAttributes:
943 case State.Interactive:
945 goto case State.ReadContentAsBinHex;
946 case State.ReadContentAsBinHex:
956 case State.ReadElementContentAsBase64:
957 case State.ReadElementContentAsBinHex:
958 case State.ReadContentAsBase64:
971 case State.EndOfFile:
974 case State.Interactive:
975 case State.PopNamespaceScope:
976 case State.ClearNsAttributes:
981 goto case State.ReadElementContentAsBinHex;
982 case State.ReadElementContentAsBinHex:
985 if (num > 0 ||
count == 0)
1006 case State.ReadElementContentAsBase64:
1007 case State.ReadContentAsBase64:
1008 case State.ReadContentAsBinHex:
1021 case State.EndOfFile:
1024 case State.PopNamespaceScope:
1025 case State.ClearNsAttributes:
1041 goto case State.Interactive;
1042 case State.Interactive:
1044 case State.ReadElementContentAsBase64:
1045 case State.ReadElementContentAsBinHex:
1046 case State.ReadContentAsBase64:
1047 case State.ReadContentAsBinHex:
1243 byte[]
buffer =
new byte[256];
1273 byte[]
buffer =
new byte[256];
1317 case State.EndOfFile:
1320 case State.Interactive:
1322 case State.PopNamespaceScope:
1323 case State.ClearNsAttributes:
1325 case State.ReadElementContentAsBase64:
1326 case State.ReadElementContentAsBinHex:
1327 case State.ReadContentAsBase64:
1328 case State.ReadContentAsBinHex:
1386 case State.Interactive:
1404 case State.EndOfFile:
1407 case State.PopNamespaceScope:
1409 goto case State.ClearNsAttributes;
1410 case State.ClearNsAttributes:
1413 goto case State.Interactive;
1414 case State.ReadElementContentAsBase64:
1415 case State.ReadElementContentAsBinHex:
1421 case State.ReadContentAsBase64:
1422 case State.ReadContentAsBinHex:
1440 case State.Interactive:
1466 case State.EndOfFile:
1469 case State.PopNamespaceScope:
1471 goto case State.ClearNsAttributes;
1472 case State.ClearNsAttributes:
1475 goto case State.Interactive;
1476 case State.ReadElementContentAsBase64:
1477 case State.ReadElementContentAsBinHex:
1483 case State.ReadContentAsBase64:
1484 case State.ReadContentAsBinHex:
1549 case State.EndOfFile:
1552 case State.PopNamespaceScope:
1553 case State.ClearNsAttributes:
1593 case State.Interactive:
1595 goto case State.ReadContentAsBase64;
1596 case State.ReadContentAsBase64:
1606 case State.ReadElementContentAsBase64:
1607 case State.ReadElementContentAsBinHex:
1608 case State.ReadContentAsBinHex:
1621 case State.EndOfFile:
1624 case State.Interactive:
1625 case State.PopNamespaceScope:
1626 case State.ClearNsAttributes:
1631 goto case State.ReadElementContentAsBase64;
1632 case State.ReadElementContentAsBase64:
1635 if (num > 0 ||
count == 0)
1656 case State.ReadElementContentAsBinHex:
1657 case State.ReadContentAsBase64:
1658 case State.ReadContentAsBinHex:
1671 case State.EndOfFile:
1674 case State.PopNamespaceScope:
1675 case State.ClearNsAttributes:
1715 case State.Interactive:
1717 goto case State.ReadContentAsBinHex;
1718 case State.ReadContentAsBinHex:
1728 case State.ReadElementContentAsBase64:
1729 case State.ReadElementContentAsBinHex:
1730 case State.ReadContentAsBase64:
1743 case State.EndOfFile:
1746 case State.Interactive:
1747 case State.PopNamespaceScope:
1748 case State.ClearNsAttributes:
1753 goto case State.ReadElementContentAsBinHex;
1754 case State.ReadElementContentAsBinHex:
1757 if (num > 0 ||
count == 0)
1778 case State.ReadElementContentAsBase64:
1779 case State.ReadContentAsBase64:
1780 case State.ReadContentAsBinHex:
1793 case State.EndOfFile:
1796 case State.PopNamespaceScope:
1797 case State.ClearNsAttributes:
1811 return Task.FromResult(num);
1813 goto case State.Interactive;
1814 case State.Interactive:
1816 case State.ReadElementContentAsBase64:
1817 case State.ReadElementContentAsBinHex:
1818 case State.ReadContentAsBase64:
1819 case State.ReadContentAsBinHex:
1853 byte[]
bytes =
new byte[256];
1883 byte[]
bytes =
new byte[256];
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static string Xml_ClosedOrErrorReader
static string Xml_InvalidNodeType
static string Xml_MixingBinaryContentMethods
static string Xml_MixingReadValueChunkWithBinary
static readonly Task< int > DoneTaskZero
int Decode(char[] chars, int startPos, int len)
void SetNextOutputBuffer(Array array, int offset, int len)
static bool Equal(string strA, string strB)
virtual ? string LookupNamespace(string prefix)
virtual ? string LookupPrefix(string uri)
virtual IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
virtual void AddNamespace(string prefix, string uri)
virtual string ReadContentAsString()
Exception CreateReadElementContentAsException(string methodName)
virtual long ReadContentAsLong()
string? GetAttribute(string name)
virtual Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
bool MoveToAttribute(string name)
bool ReadAttributeValue()
Exception CreateReadContentAsException(string methodName)
virtual async Task< object > ReadContentAsObjectAsync()
bool MoveToNextAttribute()
virtual int ReadValueChunk(char[] buffer, int index, int count)
virtual int ReadContentAsBinHex(byte[] buffer, int index, int count)
virtual float ReadContentAsFloat()
virtual int ReadContentAsInt()
virtual bool ReadContentAsBoolean()
virtual Task< int > ReadValueChunkAsync(char[] buffer, int index, int count)
bool MoveToFirstAttribute()
virtual Task< bool > ReadAsync()
virtual decimal ReadContentAsDecimal()
virtual object ReadContentAsObject()
virtual double ReadContentAsDouble()
virtual DateTime ReadContentAsDateTime()
virtual Task< string > ReadContentAsStringAsync()
virtual Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count)
virtual int ReadContentAsBase64(byte[] buffer, int index, int count)
virtual object ReadContentAs(Type returnType, IXmlNamespaceResolver? namespaceResolver)
virtual async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver? namespaceResolver)
virtual Task< string > GetValueAsync()
virtual bool CanReadValueChunk
virtual bool CanReadBinaryContent
void Set(XmlNodeType nodeType, string localName, string prefix, string name, string namespaceUri, string value)
NodeData(XmlNodeType nodeType, string localName, string prefix, string name, string namespaceUri, string value)
override string NamespaceURI
override int AttributeCount
XmlSubtreeReader(XmlReader reader)
@ ReadElementContentAsBase64
@ ReadElementContentAsBinHex
override long ReadContentAsLong()
override bool MoveToAttribute(string name)
override async Task< bool > ReadAsync()
readonly int _initialDepth
override bool ReadAttributeValue()
override string GetAttribute(string name, string namespaceURI)
override string GetAttribute(string name)
override async Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
override bool MoveToAttribute(string name, string ns)
readonly XmlNamespaceManager _nsManager
override bool CanReadBinaryContent
readonly NodeData _tmpNode
override decimal ReadContentAsDecimal()
async Task< bool > FinishReadContentAsBinaryAsync()
override int ReadValueChunk(char[] buffer, int index, int count)
override bool ReadContentAsBoolean()
override bool MoveToElement()
async Task< bool > InitReadElementContentAsBinaryAsync(State binaryState)
readonly string _xmlnsUri
bool InitReadElementContentAsBinary(State binaryState)
override string GetAttribute(int i)
override DateTime ReadContentAsDateTime()
override async Task< string > ReadContentAsStringAsync()
override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
override int ReadContentAsInt()
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
override bool IsEmptyElement
void InitReadContentAsType(string methodName)
bool InNamespaceActiveState
override void Dispose(bool disposing)
override object ReadContentAsObject()
override bool MoveToFirstAttribute()
override async Task SkipAsync()
override async Task< int > ReadElementContentAsBase64Async(byte[] buffer, int index, int count)
void SetCurrentNode(NodeData node)
int InitialNamespaceAttributeCount
override string ReadContentAsString()
IncrementalReadDecoder _binDecoder
override async Task< object > ReadContentAsObjectAsync()
override async Task< int > ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count)
void MoveToNsAttribute(int index)
override async Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count)
override bool CanReadValueChunk
override void MoveToAttribute(int i)
bool FinishReadElementContentAsBinary()
override string LookupNamespace(string prefix)
override int ReadContentAsBase64(byte[] buffer, int index, int count)
override Task< int > ReadValueChunkAsync(char[] buffer, int index, int count)
override string LocalName
override bool MoveToNextAttribute()
async Task< bool > FinishReadElementContentAsBinaryAsync()
override Task< string > GetValueAsync()
bool FinishReadContentAsBinary()
bool InAttributeActiveState
void CheckBuffer(Array buffer, int index, int count)
void AddNamespace(string prefix, string ns)
override XmlNodeType NodeType
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
override async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
void RemoveNamespace(string prefix, string localName)
void FinishReadContentAsType()
override double ReadContentAsDouble()
override float ReadContentAsFloat()
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
string? LookupNamespace(string prefix)