InformationSize.fromBytes constructor

InformationSize.fromBytes(
  1. Rational bytes
)

Creates an InformationSize representing the specified number of bytes.

Implementation

factory InformationSize.fromBytes(Rational bytes) =>
    InformationSize.fromUnits(InformationUnit.byte, bytes);