Example #1
0
 public float ReadFloat() => BitUtil.CastUIntToFloat(ReadBits(32));
Example #2
0
        public int ReadIntInRange(int minInclusive, int maxInclusive)
        {
            var bits = BitUtil.ComputeRequiredIntBits(minInclusive, maxInclusive);

            return((int)(ReadBits(bits) + minInclusive));
        }
Example #3
0
 public void WriteFloat(float value) => WriteBits(BitUtil.CastFloatToUInt(value), 32);