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

◆ TryReadInt32Array()

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

Definition at line 1082 of file XmlReaderDelegator.cs.

1083 {
1084 if (dictionaryReader == null)
1085 {
1086 array = null;
1087 return false;
1088 }
1089 if (arrayLength != -1)
1090 {
1092 array = new int[arrayLength];
1093 int num = 0;
1094 int num2 = 0;
1096 {
1097 num2 += num;
1098 }
1100 }
1101 else
1102 {
1104 context.IncrementItemCount(array.Length);
1105 }
1106 return true;
1107 }
void CheckExpectedArrayLength(XmlObjectSerializerReadContext context, int arrayLength)
void CheckActualArrayLength(int expectedLength, int actualLength, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
int GetArrayLengthQuota(XmlObjectSerializerReadContext context)
static readonly Int32ArrayHelperWithDictionaryString 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.Int32ArrayHelperWithDictionaryString.Instance, and System.Xml.XmlDictionaryReader.ReadArray().