180 if (planeTouched[plane]) { 181 size += (values[plane].length * 4 + indices[plane].length * 2); 182 } 183 } 184 return size / 1024; 185 } 186 187 private static final int PLANEMASK = 0x30000; 188 private static final int PLANESHIFT = 16; 189 private static final int PLANECOUNT = 0x10; 190 private static final int CODEPOINTMASK = 0xffff; 191 192 private static final int UNICODECOUNT = 0x10000; 193 private static final int BLOCKSHIFT = 7; 194 private static final int BLOCKCOUNT = (1<<BLOCKSHIFT); 195 private static final int INDEXSHIFT = (16-BLOCKSHIFT); 196 private static final int INDEXCOUNT = (1<<INDEXSHIFT); 197 private static final int BLOCKMASK = BLOCKCOUNT - 1; 198 199 private int defaultValue; 200 private int values[][]; 201 private short indices[][]; 202 private boolean isCompact; 203 private boolean[][] blockTouched; 204 private boolean[] planeTouched; 205 }; | 180 if (planeTouched[plane]) { 181 size += (values[plane].length * 4 + indices[plane].length * 2); 182 } 183 } 184 return size / 1024; 185 } 186 187 private static final int PLANEMASK = 0x30000; 188 private static final int PLANESHIFT = 16; 189 private static final int PLANECOUNT = 0x10; 190 private static final int CODEPOINTMASK = 0xffff; 191 192 private static final int UNICODECOUNT = 0x10000; 193 private static final int BLOCKSHIFT = 7; 194 private static final int BLOCKCOUNT = (1<<BLOCKSHIFT); 195 private static final int INDEXSHIFT = (16-BLOCKSHIFT); 196 private static final int INDEXCOUNT = (1<<INDEXSHIFT); 197 private static final int BLOCKMASK = BLOCKCOUNT - 1; 198 199 private int defaultValue; 200 private int[][] values; 201 private short[][] indices; 202 private boolean isCompact; 203 private boolean[][] blockTouched; 204 private boolean[] planeTouched; 205 }; |