ByteUnits enum
How sizes in bytes are counted and named.
Values
- decimal → const ByteUnits
-
Thousands, the SI units:
kB,MB,GB,TB,PB; a kilobyte is 1000 bytes, as inls --si,du --siand what disk makers quote.const ByteUnits(1000, ['kB', 'MB', 'GB', 'TB', 'PB']) - binary → const ByteUnits
-
1024s, the IEC units:
KiB,MiB,GiB,TiB,PiB; a kibibyte is 1024 bytes, asls -h,du -h,df -handhtopcount.const ByteUnits(1024, ['KiB', 'MiB', 'GiB', 'TiB', 'PiB'])
Properties
- base → int
-
How many of one unit make the next.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffixes
→ List<
String> -
The names of the units above the byte, the smallest first.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited