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

◆ ParseMB32_()

int System.Xml.XmlSqlBinaryReader.ParseMB32_ ( byte b)
inlineprivate

Definition at line 1937 of file XmlSqlBinaryReader.cs.

1938 {
1939 uint num = b & 0x7Fu;
1940 b = ReadByte();
1941 uint num2 = b & 0x7Fu;
1942 num += num2 << 7;
1943 if (b > 127)
1944 {
1945 b = ReadByte();
1946 num2 = b & 0x7Fu;
1947 num += num2 << 14;
1948 if (b > 127)
1949 {
1950 b = ReadByte();
1951 num2 = b & 0x7Fu;
1952 num += num2 << 21;
1953 if (b > 127)
1954 {
1955 b = ReadByte();
1956 num2 = b & 7u;
1957 if (b > 7)
1958 {
1960 }
1961 num += num2 << 28;
1962 }
1963 }
1964 }
1965 return (int)num;
1966 }
static string XmlBinary_ValueTooBig
Definition SR.cs:1388
Definition SR.cs:7
Exception ThrowXmlException(string res)

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

Referenced by System.Xml.XmlSqlBinaryReader.ParseMB32(), and System.Xml.XmlSqlBinaryReader.ParseMB64().