public static int getEncodedSize(Ptg[] ptgs) {int result = 0;for (Ptg ptg : ptgs) {result += ptg.getSize();}return result;}

public static int GetEncodedSize(Ptg[] ptgs){int result = 0;for (int i = 0; i < ptgs.Length; i++){result += ptgs[i].Size;}return result;}
