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

◆ ReadArray() [10/31]

unsafe int System.Xml.XmlBinaryReader.ReadArray ( short[] array,
int offset,
int count )
inlineprivate

Definition at line 1412 of file XmlBinaryReader.cs.

1413 {
1415 int num = Math.Min(count, _arrayCount);
1416 fixed (short* ptr = &array[offset])
1417 {
1418 base.BufferReader.UnsafeReadArray((byte*)ptr, (byte*)(ptr + num));
1419 }
1420 SkipArrayElements(num);
1421 return num;
1422 }
void CheckArray(Array array, int offset, int count)

References System.Xml.XmlBinaryReader._arrayCount, System.array, System.Xml.XmlBinaryReader.CheckArray(), System.count, System.Xml.Dictionary, System.Math.Min(), System.offset, and System.Xml.XmlBinaryReader.SkipArrayElements().