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

◆ TryReadDoubleArray()

bool System.Runtime.Serialization.XmlReaderDelegator.TryReadDoubleArray ( XmlObjectSerializerReadContext context,
XmlDictionaryString itemName,
XmlDictionaryString itemNamespace,
int arrayLength,
[NotNullWhen(true)] out double[] array )
inlinepackageinherited

Definition at line 1163 of file XmlReaderDelegator.cs.

1164 {
1165 if (dictionaryReader == null)
1166 {
1167 array = null;
1168 return false;
1169 }
1170 if (arrayLength != -1)
1171 {
1173 array = new double[arrayLength];
1174 int num = 0;
1175 int num2 = 0;
1177 {
1178 num2 += num;
1179 }
1181 }
1182 else
1183 {
1185 context.IncrementItemCount(array.Length);
1186 }
1187 return true;
1188 }
void CheckExpectedArrayLength(XmlObjectSerializerReadContext context, int arrayLength)
void CheckActualArrayLength(int expectedLength, int actualLength, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
int GetArrayLengthQuota(XmlObjectSerializerReadContext context)
static readonly DoubleArrayHelperWithDictionaryString Instance
virtual int ReadArray(string localName, string namespaceUri, bool[] array, int offset, int count)

References System.array, System.Runtime.Serialization.XmlReaderDelegator.CheckActualArrayLength(), System.Runtime.Serialization.XmlReaderDelegator.CheckExpectedArrayLength(), System.Runtime.Serialization.Dictionary, System.Runtime.Serialization.XmlReaderDelegator.dictionaryReader, System.Runtime.Serialization.XmlReaderDelegator.GetArrayLengthQuota(), System.Runtime.Serialization.XmlObjectSerializerContext.IncrementItemCount(), System.Xml.DoubleArrayHelperWithDictionaryString.Instance, and System.Xml.XmlDictionaryReader.ReadArray().