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

◆ TryReadInt64Array()

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

Definition at line 1109 of file XmlReaderDelegator.cs.

1110 {
1111 if (dictionaryReader == null)
1112 {
1113 array = null;
1114 return false;
1115 }
1116 if (arrayLength != -1)
1117 {
1119 array = new long[arrayLength];
1120 int num = 0;
1121 int num2 = 0;
1123 {
1124 num2 += num;
1125 }
1127 }
1128 else
1129 {
1131 context.IncrementItemCount(array.Length);
1132 }
1133 return true;
1134 }
void CheckExpectedArrayLength(XmlObjectSerializerReadContext context, int arrayLength)
void CheckActualArrayLength(int expectedLength, int actualLength, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
int GetArrayLengthQuota(XmlObjectSerializerReadContext context)
static readonly Int64ArrayHelperWithDictionaryString 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.Int64ArrayHelperWithDictionaryString.Instance, and System.Xml.XmlDictionaryReader.ReadArray().