Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MetadataEnumResult.cs
Go to the documentation of this file.
1namespace System.Reflection;
2
3internal struct MetadataEnumResult
4{
5 private int[] largeResult;
6
7 private int length;
8
9 private unsafe fixed int smallResult[16];
10
11 public int Length => length;
12
13 public unsafe int this[int index]
14 {
15 get
16 {
17 if (largeResult != null)
18 {
19 return largeResult[index];
20 }
21 fixed (int* ptr = smallResult)
22 {
23 return ptr[index];
24 }
25 }
26 }
27}