110 if (
a.prefix ==
b.prefix &&
a.localname ==
b.localname)
194 public bool MatchNS(
string localname,
string namespaceUri)
635 _data =
new byte[4096];
1006 if ((uint)(nodeType - 7) > 1
u)
1096 return base.ReadContentAsBoolean();
1178 return base.ReadContentAsDateTime();
1260 return base.ReadContentAsDouble();
1342 return base.ReadContentAsFloat();
1424 return base.ReadContentAsDecimal();
1506 return base.ReadContentAsInt();
1588 return base.ReadContentAsLong();
1623 return base.ReadContentAsObject();
1741 if (num ==
array2.Length)
1769 if (
num2 == 0 && num == 0)
1777 if (5 <
text.Length)
1779 if (6 ==
text.Length ||
':' !=
text[5])
1789 text =
string.Empty;
1796 nsUri = symtable[num];
1855 if (num >= 0 && num < end)
1857 int num2 = end - num;
1921 byte[] data =
_data;
1922 ushort result = (ushort)(data[pos] + (data[pos + 1] << 8));
1939 uint num =
b & 0x7F
u;
1970 byte[] data =
_data;
1971 byte b = data[pos++];
1972 uint num =
b & 0x7F
u;
2192 return string.Empty;
2304 if (
value.uri == ns)
2402 if ((uint)(
b - 1) > 1
u)
2452 if (
n.prefix ==
"xml")
2454 if (
n.localname ==
"lang")
2458 else if (
n.localname ==
"space")
2466 if (
text ==
"xmlns")
2468 text =
string.Empty;
2471 else if (
n.prefix.Length != 0)
2473 if (
n.namespaceUri.Length == 0)
2479 else if (
n.namespaceUri.Length != 0)
2565 string namespaceUri;
3032 if (
value.scope > 0)
3329 byte[] data =
_data;
3335 if (data[num + 1] != 0)
3340 if ((uint)(
b - 9) > 1
u &&
b != 13 &&
b != 32)
3676 return new Guid(
int2,
int3,
int4,
_data[
tokDataPos2 + 8],
_data[
tokDataPos2 + 9],
_data[
tokDataPos2 + 10],
_data[
tokDataPos2 + 11],
_data[
tokDataPos2 + 12],
_data[
tokDataPos2 + 13],
_data[
tokDataPos2 + 14],
_data[
tokDataPos2 + 15]).ToString();
3723 if (
qName.prefix.Length == 0)
3725 return qName.localname;
3782 return new Guid(
int2,
int3,
int4,
_data[
tokDataPos2 + 8],
_data[
tokDataPos2 + 9],
_data[
tokDataPos2 + 10],
_data[
tokDataPos2 + 11],
_data[
tokDataPos2 + 12],
_data[
tokDataPos2 + 13],
_data[
tokDataPos2 + 14],
_data[
tokDataPos2 + 15]).ToString();
static unsafe void Clear(Array array)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static short ReadInt16LittleEndian(ReadOnlySpan< byte > source)
static ulong ReadUInt64LittleEndian(ReadOnlySpan< byte > source)
static ushort ReadUInt16LittleEndian(ReadOnlySpan< byte > source)
static uint ReadUInt32LittleEndian(ReadOnlySpan< byte > source)
static float ReadSingleLittleEndian(ReadOnlySpan< byte > source)
static double ReadDoubleLittleEndian(ReadOnlySpan< byte > source)
static bool TryReadUInt16LittleEndian(ReadOnlySpan< byte > source, out ushort value)
static int ReadInt32LittleEndian(ReadOnlySpan< byte > source)
static long ReadInt64LittleEndian(ReadOnlySpan< byte > source)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
void Add(TKey key, TValue value)
static string ToBase64String(byte[] inArray)
static CultureInfo InvariantCulture
int Read(byte[] buffer, int offset, int count)
static string XmlBin_InvalidQNameID
static string Xml_UnexpectedEOF1
static string Xml_PrefixForEmptyNs
static string SqlTypes_ArithOverflow
static string XmlBinary_UnsupportedCodePage
static string Xml_DtdNotAllowedInFragment
static string Format(string resourceFormat, object p1)
static string Xml_DtdIsProhibited
static string Xml_BadDTDLocation
static string Xml_ReadContentAsFormatException
static string Xml_InvalidSurrogateMissingLowChar
static string XmlBinary_InvalidStandalone
static string XmlBinary_NoRemapPrefix
static string Xml_BadNamespaceDecl
static string Xml_InvalidRootData
static string XmlBinary_ListsOfValuesNotSupported
static string XmlBinary_AttrWithNsNoPrefix
static string XmlBinary_InvalidSignature
static string XmlBinary_InvalidProtocolVersion
static string XmlBinary_CastNotSupported
static string Xml_DupAttributeName
static string XmlBinary_ValueTooBig
static string XmlBin_MissingEndCDATA
static string Xml_UnexpectedEndTag
static string XmlBinary_UnexpectedToken
static Encoding GetEncoding(int codepage)
unsafe string GetString(byte *bytes, int byteCount)
static void Encode(byte[] buffer, int index, int count, XmlWriter writer)
static DateTime XsdKatmaiDateOffsetToDateTime(byte[] data, int offset)
static string XsdKatmaiTimeToString(byte[] data, int offset)
static string XsdKatmaiDateToString(byte[] data, int offset)
static DateTimeOffset XsdKatmaiTimeOffsetToDateTimeOffset(byte[] data, int offset)
static string XsdKatmaiDateTimeOffsetToString(byte[] data, int offset)
static string SqlSmallDateTimeToString(short dateticks, ushort timeticks)
static string XsdKatmaiTimeOffsetToString(byte[] data, int offset)
static DateTime XsdKatmaiDateToDateTime(byte[] data, int offset)
static DateTime XsdKatmaiTimeOffsetToDateTime(byte[] data, int offset)
static DateTime XsdDateTimeToDateTime(long val)
static DateTime XsdKatmaiDateTimeOffsetToDateTime(byte[] data, int offset)
static string XsdDateToString(long val)
static DateTime XsdTimeToDateTime(long val)
static DateTime XsdKatmaiDateTimeToDateTime(byte[] data, int offset)
static string XsdKatmaiDateTimeToString(byte[] data, int offset)
static DateTime XsdDateToDateTime(long val)
static string SqlDateTimeToString(int dateticks, uint timeticks)
static string XsdDateTimeToString(long val)
static DateTime SqlDateTimeToDateTime(int dateticks, uint timeticks)
static DateTimeOffset XsdKatmaiDateTimeOffsetToDateTimeOffset(byte[] data, int offset)
static string XsdTimeToString(long val)
static DateTime SqlSmallDateTimeToDateTime(short dateticks, ushort timeticks)
static DateTime XsdKatmaiTimeToDateTime(byte[] data, int offset)
static DateTimeOffset XsdKatmaiDateOffsetToDateTimeOffset(byte[] data, int offset)
static string XsdKatmaiDateOffsetToString(byte[] data, int offset)
static bool Equal(string strA, string strB)
static XmlSchemaSimpleType GetSimpleTypeFromTypeCode(XmlTypeCode typeCode)
object ChangeType(bool value, Type destinationType)
static void SplitQName(string name, out string prefix, out string lname)
static bool IsWhiteSpace(char ch)
static bool IsLowSurrogate(int ch)
static bool IsCharData(char ch)
static bool IsHighSurrogate(int ch)
static bool ToBoolean(string s)
static void VerifyCharData(string data, ExceptionType exceptionType)
static int ToInt32(string s)
static string ToString(bool value)
static float ToSingle(string s)
static double ToDouble(string s)
static Exception CreateInvalidCharException(char[] data, int length, int invCharPos, ExceptionType exceptionType)
static Exception CreateInvalidSurrogatePairException(char low, char hi)
static DateTime ToDateTime(string s)
static decimal ToDecimal(string s)
static long ToInt64(string s)
ConformanceLevel ConformanceLevel
DtdProcessing DtdProcessing
bool IgnoreProcessingInstructions
virtual XmlSpace XmlSpace
string? GetAttribute(string name)
bool MoveToAttribute(string name)
bool ReadAttributeValue()
Exception CreateReadContentAsException(string methodName)
bool MoveToNextAttribute()
static bool HasValueInternal(XmlNodeType nodeType)
bool MoveToFirstAttribute()
string? LookupNamespace(string prefix)
static bool CanReadContentAs(XmlNodeType nodeType)
NamespaceDecl(string prefix, string nsuri, NamespaceDecl nextInScope, NamespaceDecl prevDecl, int scope, bool implied)
SymbolTables symbolTables
NestedBinXml(SymbolTables symbolTables, int docState, NestedBinXml next)
XmlSqlBinaryReader(Stream stream, byte[] data, int len, string baseUri, bool closeInput, XmlReaderSettings settings)
ushort GetUInt16(int pos)
void HashCheckForDuplicateAttributes()
int ScanText(out int start)
void AddInitNamespace(string prefix, string uri)
object ValueAsObject(BinXmlToken token, bool returnInternalTypes)
XmlNodeType _parentNodeType
void GenerateImpliedXmlnsAttrs()
bool ReadInit(bool skipXmlDecl)
SymbolTables _symbolTables
XmlNodeType CheckTextIsWS()
bool SetupContentAsXXX(string name)
override string LookupNamespace(string prefix)
Type GetValueType(BinXmlToken token)
string GetAttributeText(int i)
override void ResolveEntity()
override string LocalName
XmlNodeType ScanOverValue(BinXmlToken token, bool attr, bool checkChars)
override bool MoveToElement()
void PositionOnAttribute(int i)
readonly bool _checkCharacters
override bool MoveToFirstAttribute()
int FinishContentAsXXX(int origPos)
override int ReadContentAsInt()
int LocateAttribute(string name, string ns)
string GetString(int pos, int cch)
static readonly ReadState[] s_scanState2ReadState
override string GetAttribute(string name)
readonly bool _ignoreWhitespace
override void MoveToAttribute(int i)
readonly bool _closeInput
override string GetAttribute(int i)
DateTime ValueAsDateTime()
static readonly Type TypeOfObject
override XmlNameTable NameTable
override string GetAttribute(string name, string ns)
override int AttributeCount
object ValueAs(BinXmlToken token, Type returnType, IXmlNamespaceResolver namespaceResolver)
override XmlNodeType NodeType
BinXmlToken NextToken2(BinXmlToken token)
NestedBinXml _prevNameInfo
static ReadOnlySpan< byte > XsdKatmaiTimeScaleToValueLengthMap
override bool MoveToAttribute(string name)
override bool MoveToAttribute(string name, string ns)
Exception ThrowXmlException(string res)
override bool ReadAttributeValue()
readonly DtdProcessing _dtdProcessing
string ValueAsString(BinXmlToken token)
int XsdKatmaiTimeScaleToValueLength(byte scale)
BinXmlToken RescanNextToken()
Exception ThrowXmlException(string res, string arg1, string arg2)
void UpdateFromTextReader()
override object ReadContentAsObject()
void ImplReadData(BinXmlToken tokenType)
void PopNamespaces(NamespaceDecl firstInScopeChain)
int GetXsdKatmaiTokenLength(BinXmlToken token)
override bool ReadContentAsBoolean()
override string NamespaceURI
override DateTime ReadContentAsDateTime()
void CheckValueTokenBounds()
readonly XmlNameTable _xnt
BinXmlToken PeekNextToken()
void ReScanOverValue(BinXmlToken token)
XmlNodeType ScanOverAnyValue(BinXmlToken token, bool attr, bool checkChars)
void VerifyVersion(int requiredVersion, BinXmlToken token)
bool UpdateFromTextReader(bool needUpdate)
override float ReadContentAsFloat()
override bool MoveToNextAttribute()
void ImplReadEndElement()
override long ReadContentAsLong()
float GetSingle(int offset)
override XmlReaderSettings Settings
override decimal ReadContentAsDecimal()
string ValueAsDateTimeString()
void SimpleCheckForDuplicateAttributes()
override double ReadContentAsDouble()
static readonly Type TypeOfString
readonly Dictionary< string, NamespaceDecl > _namespaces
DateTimeOffset ValueAsDateTimeOffset()
XmlNodeType CheckText(bool attr)
int LocateAttribute(string name)
Exception ThrowUnexpectedToken(BinXmlToken token)
Type[] GenerateTokenTypeMap()
static volatile Type[] s_tokenTypeMap
Exception ThrowNotSupported(string res)
override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
void PushNamespace(string prefix, string ns, bool implied)
readonly bool _ignoreComments
readonly bool _xntFromSettings
override bool IsEmptyElement
XmlValueConverter GetValueConverter(XmlTypeCode typeCode)
double GetDouble(int offset)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
XmlDateTimeSerializationMode
override string ToString()
override string ToString()
bool MatchHashNS(int hash, string localname, string namespaceUri)
bool MatchNS(string localname, string namespaceUri)
void AdjustPosition(int adj)
void Set(QName n, int pos)
int GetLocalnameAndNamespaceUriAndHash(out string localname, out string namespaceUri)
void GetLocalnameAndNamespaceUri(out string localname, out string namespaceUri)
void Set(QName n, string v)
void Set(QName name, bool xmlspacePreserve)
static bool operator!=(QName a, QName b)
void CheckPrefixNS(string prefix, string namespaceUri)
QName(string prefix, string lname, string nsUri)
bool MatchPrefix(string prefix, string lname)
static bool operator==(QName a, QName b)
void Set(string prefix, string lname, string nsUri)
override int GetHashCode()
override string ToString()
override bool Equals([NotNullWhen(true)] object other)
bool MatchNs(string lname, string nsUri)