System.Reflection.Emit.DynamicResolver.GetCodeInfo C# (CSharp) Method

GetCodeInfo() private method

private GetCodeInfo ( int &stackSize, int &initLocals, int &EHCount ) : byte[]
stackSize int
initLocals int
EHCount int
return byte[]
        internal override byte[] GetCodeInfo(
            ref int stackSize, ref int initLocals, ref int EHCount) 
        {
            stackSize = m_stackSize;
            if (m_exceptionHeader != null && m_exceptionHeader.Length != 0)
            {
                if (m_exceptionHeader.Length < 4)
                    throw new FormatException();

                byte header = m_exceptionHeader[0];                

                if ((header & 0x40) != 0) // Fat
                {
                    byte[] size = new byte[4];
                    for (int q = 0; q < 3; q++)
                        size[q] = m_exceptionHeader[q + 1];
                    EHCount = (BitConverter.ToInt32(size, 0) - 4) / 24;
                }
                else
                    EHCount = (m_exceptionHeader[1] - 2) / 12;
            }
            else
            {
                EHCount = ILGenerator.CalculateNumberOfExceptions(m_exceptions);
            }
            initLocals = (m_method.InitLocals) ? 1 : 0;
            return m_code;
        }