IntArrayList res = new IntArrayList((int) (len * 0.75));
int code;
for(int offset = 0; (code = decodeCharacter(binary, offset, 0, 0)) != EOF; offset += characterSize(code)) {
res.add(code);
}
return res.toArray();
}
public static int[] decode(final byte[] binary) {
return decode(binary, binary.length);
}