314 if ((@
byte & 0
x80) == 0)
321 @
byte |= (
byte2 & 0x7F) << 7;
328 @
byte |= (
byte3 & 0x7F) << 14;
335 @
byte |= (
byte4 & 0x7F) << 21;
342 @
byte |=
byte5 << 28;
385 return (((
b4 << 8) +
b3 << 8) +
b2 << 8) +
b;
402 return (
num2 << 32) + num;
410 byte*
ptr = (
byte*)(&result);
424 byte*
ptr = (
byte*)(&result);
442 byte*
ptr = (
byte*)(&result);
443 for (
int i = 0; i < 16; i++)
534 for (
int i = 0; i < 256; i++)
565 return new char[
count];
577 for (
int i = 0; i <
length; i++)
592 for (
int i = 0; i <
length; i++)
684 if ((uint)(
ch - 9) <= 1
u ||
ch == 13 ||
ch == 38)
752 for (
int i = 2; i <
length - 1; i++)
759 num = num * 10 + (
b - 48);
772 for (
int i = 3; i <
length - 1; i++)
780 num = num * 16 +
num2;
825 for (
int i = 0; i <
value.Length; i++)
838 for (
int i = 0; i <
length; i++)
850 for (
int i = 0; i <
length; i += 2)
887 for (
int i = 0; i <
length1; i++)
905 for (
int i = 0; i <
length1; i++)
926 for (
int i = 0; i <
length1; i++)
947 for (
int i = 0; i < num; i++)
997 for (
int i = 0; i < num; i++)
1031 return (((
b4 << 8) +
b3 << 8) +
b2 << 8) +
b;
1041 long num = (uint)((((
b4 << 8) +
b3 << 8) +
b2 << 8) +
b);
1046 long num2 = (uint)((((
b4 << 8) +
b3 << 8) +
b2 << 8) +
b);
1047 return (
num2 << 32) + num;
1059 byte*
ptr = (
byte*)(&result);
1071 byte*
ptr = (
byte*)(&result);
1087 byte*
ptr = (
byte*)(&result);
1088 for (
int i = 0; i < 16; i++)
1104 _guid =
new byte[16];
1132 for (
int i = 0; i <
count; i++)
1160 if (((uint)num & (
true ? 1
u : 0
u)) != 0)
1166 int num2 = num >> 1;
1182 int num3 = num >> 1;
1303 if (((uint)
length & (
true ? 1
u : 0
u)) != 0)
1366 return list.ToArray();
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
void Add(TKey key, TValue value)
static CultureInfo InvariantCulture
static int FromChar(int c)
int Read(byte[] buffer, int offset, int count)
static byte Min(byte val1, byte val2)
static byte Max(byte val1, byte val2)
static Exception ThrowHelperError(Exception e)
bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result)
XmlBinaryNodeType GetNodeType()
XmlDictionaryString GetDictionaryString(int key)
bool Equals2(int key1, int key2, XmlBufferReader bufferReader2)
ulong GetUInt64(int offset)
bool IsWhitespaceKey(int key)
unsafe void UnsafeReadArray(byte *dst, int length)
unsafe double ReadDouble()
int GetEscapedChars(int offset, int length, char[] chars)
int GetApostropheCharEntity(int offset, int length)
int GetCharEntity(int offset, int length)
bool IsWhitespaceUnicode(int offset, int length)
unsafe decimal GetDecimal(int offset)
unsafe float GetSingle(int offset)
int Compare(int offset1, int length1, int offset2, int length2)
unsafe float ReadSingle()
object[] GetList(int offset, int count)
int GetDecimalCharEntity(int offset, int length)
string GetUnicodeString(int offset, int length)
int GetGreaterThanCharEntity(int offset, int length)
void ReadValue(ValueHandle value, ValueHandleType type, int length)
bool Equals2(int offset1, int length1, byte[] buffer2)
byte[] GetBuffer(out int offset, out int offsetMax)
string GetEscapedString(int offset, int length)
byte[] GetBufferHard(int count, out int offset)
string ReadUTF8String(int length)
void ReadValue(XmlBinaryNodeType nodeType, ValueHandle value)
long GetInt64(int offset)
int GetQuoteCharEntity(int offset, int length)
int GetChars(int offset, int length, char[] chars)
void EnsureBytes(int count)
XmlBufferReader(byte[] buffer)
void InsertBytes(byte[] buffer, int offset, int count)
void ReadList(ValueHandle value)
static readonly XmlBufferReader s_empty
void ReadQName(ValueHandle value)
void ReadUnicodeValue(ValueHandle value, int length)
byte[] GetBuffer(int count, out int offset)
int GetAmpersandCharEntity(int offset, int length)
void SetBuffer(Stream stream, IXmlDictionary dictionary, XmlBinaryReaderSession session)
char[] GetCharBuffer(int count)
IXmlDictionary _dictionary
readonly XmlDictionaryReader _reader
bool TryEnsureBytes(int count)
unsafe double GetDouble(int offset)
bool Equals2(int offset1, int length1, XmlBufferReader bufferReader2, int offset2, int length2)
byte[] GetBuffer(int count, out int offset, out int offsetMax)
int GetHexCharEntity(int offset, int length)
int GetChars(int offset, int length, char[] chars, int charOffset)
void SetBuffer(byte[] buffer, int offset, int count, IXmlDictionary dictionary, XmlBinaryReaderSession session)
XmlBinaryReaderSession _session
int ReadMultiByteUInt31()
XmlBufferReader(XmlDictionaryReader reader)
bool IsWhitespaceUTF8(int offset, int length)
string GetString(int offset, int length, XmlNameTable nameTable)
UniqueId GetUniqueId(int offset)
void SetWindow(int windowOffset, int windowLength)
int GetLessThanCharEntity(int offset, int length)
bool Equals2(int key1, XmlDictionaryString xmlString2)
bool Equals2(int offset1, int length1, int offset2, int length2)
void SetBuffer(Stream stream, byte[] buffer, int offset, int count, IXmlDictionary dictionary, XmlBinaryReaderSession session)
unsafe bool Equals2(int offset1, int length1, string s2)
void GetBase64(int srcOffset, byte[] buffer, int dstOffset, int count)
string GetString(int offset, int length)
unsafe decimal ReadDecimal()
const int maxBytesPerChar
unsafe void UnsafeReadArray(byte *dst, byte *dstMax)
static string ToStringUnicode(byte[] buffer, int offset, int count)
static bool IsWhitespace(string s)
static string ToString(byte[] buffer, int offset, int count)
static int ToChars(byte[] buffer, int offset, int count, char[] chars, int charOffset)
static void ThrowXmlDictionaryStringIDOutOfRange(XmlDictionaryReader reader)
static void ThrowUnexpectedEndOfFile(XmlDictionaryReader reader)
static void ThrowInvalidBinaryFormat(XmlDictionaryReader reader)
static void ThrowXmlDictionaryStringIDUndefinedStatic(XmlDictionaryReader reader, int key)
static void ThrowXmlDictionaryStringIDUndefinedSession(XmlDictionaryReader reader, int key)
static void ThrowInvalidCharRef(XmlDictionaryReader reader)
static XmlException CreateConversionException(string type, Exception exception)
bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result)
static DateTime FromBinary(long dateData)
static TimeSpan FromTicks(long value)