Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
XmlQueryDataReader.cs
Go to the documentation of this file.
1using System.IO;
2
4
5internal sealed class XmlQueryDataReader : BinaryReader
6{
8 : base(input)
9 {
10 }
11
12 public string ReadStringQ()
13 {
14 if (!ReadBoolean())
15 {
16 return null;
17 }
18 return ReadString();
19 }
20
21 public sbyte ReadSByte(sbyte minValue, sbyte maxValue)
22 {
23 sbyte b = ReadSByte();
24 if (b < minValue)
25 {
26 throw new ArgumentOutOfRangeException("minValue");
27 }
28 if (maxValue < b)
29 {
30 throw new ArgumentOutOfRangeException("maxValue");
31 }
32 return b;
33 }
34}
virtual bool ReadBoolean()
virtual string ReadString()
virtual sbyte ReadSByte()
sbyte ReadSByte(sbyte minValue, sbyte maxValue)