Ejemplo n.º 1
0
        internal BaseN(int n)
        {
            this.n = n;

            if (Bits.IsPowerOf2(n))
            {
                encoding = Codes.FixedWidth(Bits.FloorLog2(n) + 1);
            }
            else
            {
                encoding = Codes.TruncatedBinary(n);
            }
        }
Ejemplo n.º 2
0
 public void FixedWidthTest()
 {
     EncodingTest(Codes.FixedWidth(27));
 }