Ejemplo n.º 1
0
        public int CreatesUsing3Values(ulong inValue, ulong smallValue, ulong mediumValue, ulong largeValue)
        {
            var packer = new VarIntPacker(smallValue, mediumValue, largeValue);

            packer.PackUlong(writer, inValue);
            return(writer.BitPosition);
        }
Ejemplo n.º 2
0
        public void UnpacksCorrectUlongValue()
        {
            var start = GetRandonUlongBias();

            packer.PackUlong(writer, start);
            var unpacked = packer.UnpackUlong(GetReader());

            Assert.That(unpacked, Is.EqualTo(start));
        }