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;}
public static long GetBaseSize(byte[] delta){int p = 0;long baseLen = 0;int c;int shift = 0;do{c = delta[p++] & unchecked((int)(0xff));baseLen |= ((long)(c & unchecked((int)(0x7f)))) << shift;shift += 7;}while ((c & unchecked((int)(0x80))) != 0);return baseLen;}