class Bytes

Provides helper methods for byte conversions.

Hierarchy

  • class \Drupal\Component\Utility\Bytes

File

core/lib/Drupal/Component/Utility/Bytes.php, line 8

Namespace

Drupal\Component\Utility

Members

Name Modifiers Type Description
Bytes::KILOBYTE constant The number of bytes in a kilobyte.
Bytes::toInt public static function Parses a given byte size.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Bytes.php/class/Bytes/8.1.x