public static int[] decode(final byte[] binary, final int len) {
if(len == 0) {
return null;
}
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();
}