Exemplo n.º 1
0
            int CalculateSize(BlamLib.CheApe.ProjectState state, Field f)
            {
                int size = 0;

                if (f.TypeIndex == state.kTypeIndexPad || f.TypeIndex == state.kTypeIndexSkip)
                {
                    size = f.ToInt();
                }
                else
                {
                    size = state.GetFieldSize(f.TypeIndex);
                }

                return(size);
            }
Exemplo n.º 2
0
 int CalculateSize(BlamLib.CheApe.ProjectState state, Field f, int kUselessPadTypeIndex)
 {
     if (f.TypeIndex == state.kTypeIndexPad ||
         f.TypeIndex == kUselessPadTypeIndex ||
         f.TypeIndex == state.kTypeIndexSkip)
     {
         return(f.ToInt());
     }
     //else if (f.TypeIndex == kStructTypeIndex)
     //	((Struct)state.ImportedBlocks[f.ToString()]).Block.Latest.CalculateSize();
     else
     {
         return(state.GetFieldSize(f.TypeIndex));
     }
 }