public static uint GetCompressedSize(this uint value) { if (value < 0x80) return 1; if (value < 0x4000) return 2; return 4; }