Exemple #1
0
 public void BitsRequired()
 {
     Assert.AreEqual(Unsafe.SizeOf <i32>() * 8, BitBuffer.BitsRequired(i32.MinValue, i32.MaxValue));
     Assert.AreEqual(Unsafe.SizeOf <i8>() * 8, BitBuffer.BitsRequired(i8.MinValue, i8.MaxValue));
     Assert.AreEqual(2, BitBuffer.BitsRequired(1, 3));
 }