示例#1
0
        public static IConstantInfo[] ReadConstantInfos(this ClassReader reader, ConstantPool pool)
        {
            var count = reader.ReadU2();
            var infos = new IConstantInfo[count];

            for (int i = 1; i < infos.Length; i++)
            {
                infos[i] = reader.ReadConstantInfo(pool);
                if (infos[i].Type == ConstantType.Double || infos[i].Type == ConstantType.Long)
                {
                    i++;
                }
            }
            return(infos);
        }