text: 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;}