ByteSizeUnit Enum

Specifies the units for byte size values, including both decimal (1000-based) and binary (1024-based) units.

public enum ByteSizeUnit : long

Fields

NameValueDescription
Byte1Byte (B) - 1 byte.
KiloByte1000Kilobyte (kB) - 1,000 bytes.
KibiByte1024Kibibyte (kiB) - 1,024 bytes (2^10).
MegaByte1000000Megabyte (MB) - 1,000,000 bytes.
MebiByte1048576Mebibyte (MiB) - 1,048,576 bytes (2^20).
GigaByte1000000000Gigabyte (GB) - 1,000,000,000 bytes.
GibiByte1073741824Gibibyte (GiB) - 1,073,741,824 bytes (2^30).
TeraByte1000000000000Terabyte (TB) - 1,000,000,000,000 bytes.
TebiByte1099511627776Tebibyte (TiB) - 1,099,511,627,776 bytes (2^40).
PetaByte1000000000000000Petabyte (PB) - 1,000,000,000,000,000 bytes.
PebiByte1125899906842624Pebibyte (PiB) - 1,125,899,906,842,624 bytes (2^50).
ExaByte1000000000000000000Exabyte (EB) - 1,000,000,000,000,000,000 bytes.
ExbiByte1152921504606846976Exbibyte (EiB) - 1,152,921,504,606,846,976 bytes (2^60).