InformationSize.fromBits constructor

InformationSize.fromBits(
  1. Rational bits
)

Creates an InformationSize representing the specified number of bits.

Implementation

factory InformationSize.fromBits(Rational bits) =>
    InformationSize.fromUnits(InformationUnit.bit, bits);