Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ParseMB32() [2/2]

int System.Xml.XmlSqlBinaryReader.ParseMB32 ( int pos)
inlineprivate

Definition at line 1968 of file XmlSqlBinaryReader.cs.

1969 {
1970 byte[] data = _data;
1971 byte b = data[pos++];
1972 uint num = b & 0x7Fu;
1973 if (b > 127)
1974 {
1975 b = data[pos++];
1976 uint num2 = b & 0x7Fu;
1977 num += num2 << 7;
1978 if (b > 127)
1979 {
1980 b = data[pos++];
1981 num2 = b & 0x7Fu;
1982 num += num2 << 14;
1983 if (b > 127)
1984 {
1985 b = data[pos++];
1986 num2 = b & 0x7Fu;
1987 num += num2 << 21;
1988 if (b > 127)
1989 {
1990 b = data[pos++];
1991 num2 = b & 7u;
1992 if (b > 7)
1993 {
1995 }
1996 num += num2 << 28;
1997 }
1998 }
1999 }
2000 }
2001 return (int)num;
2002 }
static string XmlBinary_ValueTooBig
Definition SR.cs:1388
Definition SR.cs:7
Exception ThrowXmlException(string res)

References System.Xml.XmlSqlBinaryReader._data, System.Xml.Dictionary, System.Xml.XmlSqlBinaryReader.ThrowXmlException(), and System.SR.XmlBinary_ValueTooBig.