static int compressed30BitUint_lengthForValue(int i) { if (i < 0x40) ret 1; if (i < 0x4000) ret 2; if (i < 0x400000) ret 3; ret 4; }