Ejemplo n.º 1
0
        public void f32Bdiff()
        {
            var writer = new BitBufferWriter <SevenBitEncoding <u32ArrayMemory> >();

            writer.f32BDiff(0f, 1f);
            writer.f32BDiff(1f, 1f);
            var data   = writer.ToArray();
            var reader = new BitBufferReader <SevenBitDecoding <u32ArrayMemory> >();

            reader.CopyFrom(data);
            Assert.AreEqual(1f, reader.f32BDiff(0f));
            Assert.AreEqual(1f, reader.f32BDiff(1f));
        }