text: public static long getBaseSize(byte[] delta) {int p = 0;long baseLen = 0;int c, shift = 0;do {c = delta[p++] & 0xff;baseLen |= ((long) (c & 0x7f)) << shift;shift += 7;} while ((c & 0x80) != 0);return baseLen;}