19 private static readonly
string[]
s_constStrings =
new string[6] {
"string",
"number",
"array",
"object",
"boolean",
"null" };
185 if (@
int >=
int.MinValue && @
int <=
int.MaxValue)
195 if (
uInt <=
int.MaxValue)
227 if (
uInt <=
long.MaxValue)
281 if ((@
double >= -3.4028234663852886
E+38 && @
double <= 3.4028234663852886
E+38) || !
double.IsFinite(@
double))
283 return (
float)@double;
419 byte[]
array2 =
new byte[num];
516 for (
int i = 0; i <
_length; i++)
740 for (
int i = 0; i < num; i++)
800 return ((
char)@
char).ToString();
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
static byte Min(byte val1, byte val2)
static Exception ThrowHelperError(Exception e)
unsafe override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
unsafe string GetString(byte *bytes, int byteCount)
static string GetString(PrefixHandleType type)
static PrefixHandleType GetAlphaPrefix(int index)
void Sign(XmlSigningNodeWriter writer)
static Base64Encoding s_base64Encoding
string GetQNameDictionaryText()
bool TryReadChars(char[] chars, int offset, int count, out int actual)
bool TryReadUnicodeChars(char[] chars, int offset, int count, out int actual)
void SetConstantValue(ValueHandleConstStringType constStringType)
void SetValue(ValueHandleType type)
bool TryGetByteArrayLength(out int length)
void SetDictionaryValue(int key)
void SetCharValue(int ch)
XmlDictionaryString GetDictionaryString()
bool TryReadBase64(byte[] buffer, int offset, int count, out int actual)
void GetBase64(byte[] buffer, int offset, int count)
override string ToString()
ValueHandle(XmlBufferReader bufferReader)
bool Equals2(string str, bool checkLower)
static readonly string[] s_constStrings
void SetValue(ValueHandleType type, int offset, int length)
readonly XmlBufferReader _bufferReader
string GetEscapedCharsText()
static Base64Encoding Base64Encoding
string GetUnicodeCharsText()
bool TryGetDictionaryString([NotNullWhen(true)] out XmlDictionaryString value)
void SetQNameValue(int prefix, int key)
XmlDictionaryString GetDictionaryString(int key)
ulong GetUInt64(int offset)
bool IsWhitespaceKey(int key)
bool IsWhitespaceUnicode(int offset, int length)
unsafe decimal GetDecimal(int offset)
unsafe float GetSingle(int offset)
object[] GetList(int offset, int count)
string GetUnicodeString(int offset, int length)
string GetEscapedString(int offset, int length)
long GetInt64(int offset)
unsafe double GetDouble(int offset)
bool IsWhitespaceUTF8(int offset, int length)
UniqueId GetUniqueId(int offset)
static XmlBufferReader Empty
void GetBase64(int srcOffset, byte[] buffer, int dstOffset, int count)
string GetString(int offset, int length)
static float ToSingle(string value)
static bool ToBoolean(string value)
static bool IsWhitespace(string s)
static decimal ToDecimal(string value)
static int ToInt32(string value)
static long ToInt64(string value)
static Guid ToGuid(string value)
static string ToString(byte[] buffer, int offset, int count)
static TimeSpan ToTimeSpan(string value)
static ulong ToUInt64(string value)
static double ToDouble(string value)
static DateTime ToDateTime(long value)
static string StripWhitespace(string s)
static UniqueId ToUniqueId(string value)
static XmlException CreateEncodingException(byte[] buffer, int offset, int count, Exception exception)
ValueHandleConstStringType