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

◆ GetCodeInfo()

override byte[] System.Reflection.Emit.DynamicResolver.GetCodeInfo ( out int stackSize,
out int initLocals,
out int EHCount )
inlinepackage

Definition at line 120 of file DynamicResolver.cs.

121 {
122 stackSize = m_stackSize;
123 if (m_exceptionHeader != null && m_exceptionHeader.Length != 0)
124 {
125 if (m_exceptionHeader.Length < 4)
126 {
127 throw new FormatException();
128 }
129 byte b = m_exceptionHeader[0];
130 if ((b & 0x40u) != 0)
131 {
132 int num = m_exceptionHeader[3] << 16;
133 num |= m_exceptionHeader[2] << 8;
134 num |= m_exceptionHeader[1];
135 EHCount = (num - 4) / 24;
136 }
137 else
138 {
139 EHCount = (m_exceptionHeader[1] - 2) / 12;
140 }
141 }
142 else
143 {
145 }
146 initLocals = (m_method.InitLocals ? 1 : 0);
147 return m_code;
148 }
static int CalculateNumberOfExceptions(__ExceptionInfo[] excp)

References System.Reflection.Emit.DynamicResolver.CalculateNumberOfExceptions(), System.Reflection.Emit.DynamicResolver.m_code, System.Reflection.Emit.DynamicResolver.m_exceptionHeader, System.Reflection.Emit.DynamicResolver.m_exceptions, and System.Reflection.Emit.DynamicResolver.m_stackSize.