public VarIntPacker(ulong smallValue, ulong mediumValue, ulong largeValue, bool throwIfOverLarge = true) : this(BitHelper.BitCount(smallValue), BitHelper.BitCount(mediumValue), BitHelper.BitCount(largeValue), throwIfOverLarge) { }
/// <param name="max"></param> /// <param name="lowestPrecision">lowest precision, actual precision will be caculated from number of bits used</param> public FloatPacker(float max, float lowestPrecision) : this(max, BitHelper.BitCount(max, lowestPrecision)) { }
public VarIntPacker(ulong smallValue, ulong mediumValue) : this(BitHelper.BitCount(smallValue), BitHelper.BitCount(mediumValue), 64, false) { }
/// <param name="max"></param> /// <param name="lowestPrecision">lowest precision, actual precision will be caculated from number of bits used</param> /// <param name="signed">if negative values will be allowed or not</param> public FloatPacker(float max, float lowestPrecision, bool signed) : this(max, BitHelper.BitCount(max, lowestPrecision, signed), signed) { }