ByteSizeUnit Enum
Specifies the units for byte size values, including both decimal (1000-based) and binary (1024-based) units.
public enum ByteSizeUnit : longFields
| Name | Value | Description |
|---|---|---|
Byte | 1 | Byte (B) - 1 byte. |
KiloByte | 1000 | Kilobyte (kB) - 1,000 bytes. |
KibiByte | 1024 | Kibibyte (kiB) - 1,024 bytes (2^10). |
MegaByte | 1000000 | Megabyte (MB) - 1,000,000 bytes. |
MebiByte | 1048576 | Mebibyte (MiB) - 1,048,576 bytes (2^20). |
GigaByte | 1000000000 | Gigabyte (GB) - 1,000,000,000 bytes. |
GibiByte | 1073741824 | Gibibyte (GiB) - 1,073,741,824 bytes (2^30). |
TeraByte | 1000000000000 | Terabyte (TB) - 1,000,000,000,000 bytes. |
TebiByte | 1099511627776 | Tebibyte (TiB) - 1,099,511,627,776 bytes (2^40). |
PetaByte | 1000000000000000 | Petabyte (PB) - 1,000,000,000,000,000 bytes. |
PebiByte | 1125899906842624 | Pebibyte (PiB) - 1,125,899,906,842,624 bytes (2^50). |
ExaByte | 1000000000000000000 | Exabyte (EB) - 1,000,000,000,000,000,000 bytes. |
ExbiByte | 1152921504606846976 | Exbibyte (EiB) - 1,152,921,504,606,846,976 bytes (2^60). |