constant Bytes::ALLOWED_SUFFIXES in Drupal 9
The allowed suffixes of a bytes string in lowercase.
See also
http://wikipedia.org/wiki/Kilobyte
File
- core/
lib/ Drupal/ Component/ Utility/ Bytes.php, line 22
Class
- Bytes
- Provides helper methods for byte conversions.
Namespace
Drupal\Component\UtilityCode
const ALLOWED_SUFFIXES = [
'',
'b',
'byte',
'bytes',
'k',
'kb',
'kilobyte',
'kilobytes',
'm',
'mb',
'megabyte',
'megabytes',
'g',
'gb',
'gigabyte',
'gigabytes',
't',
'tb',
'terabyte',
'terabytes',
'p',
'pb',
'petabyte',
'petabytes',
'e',
'eb',
'exabyte',
'exabytes',
'z',
'zb',
'zettabyte',
'zettabytes',
'y',
'yb',
'yottabyte',
'yottabytes',
];