ByteSize.FromBits(Int64.MaxValue);
The above initializes the struct with a number of bits equal to -9223372036854775808. Surrounding large numbers also don't work.
Please fix your math or change the argument type to Int32 if you handle smaller numbers only.
The above initializes the struct with a number of bits equal to
-9223372036854775808. Surrounding large numbers also don't work.Please fix your math or change the argument type to
Int32if you handle smaller numbers only.