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

◆ EnsureCapacity()

void System.Reflection.Emit.ScopeTree.EnsureCapacity ( )
inlinepackage

Definition at line 65 of file ScopeTree.cs.

66 {
67 if (m_iCount == 0)
68 {
69 m_iOffsets = new int[16];
71 m_localSymInfos = new LocalSymInfo[16];
72 }
73 else if (m_iCount == m_iOffsets.Length)
74 {
75 int num = checked(m_iCount * 2);
76 int[] array = new int[num];
79 ScopeAction[] array2 = new ScopeAction[num];
80 Array.Copy(m_ScopeActions, array2, m_iCount);
81 m_ScopeActions = array2;
82 LocalSymInfo[] array3 = new LocalSymInfo[num];
83 Array.Copy(m_localSymInfos, array3, m_iCount);
84 m_localSymInfos = array3;
85 }
86 }

References System.array, System.Array.Copy(), System.Reflection.Emit.ScopeTree.m_iCount, System.Reflection.Emit.ScopeTree.m_iOffsets, System.Reflection.Emit.ScopeTree.m_localSymInfos, and System.Reflection.Emit.ScopeTree.m_ScopeActions.

Referenced by System.Reflection.Emit.ScopeTree.AddScopeInfo().