Measure/Binary.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Measure  
Version
$Id$  

\Zend_Measure_Binary

Package: Zend_Measure\Zend_Measure_Binary
Class for handling binary conversions
Parent(s)
\Zend_Measure_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  STANDARD = 'BYTE'
>VConstant  BIT = 'BIT'
>VConstant  CRUMB = 'CRUMB'
>VConstant  NIBBLE = 'NIBBLE'
>VConstant  BYTE = 'BYTE'
>VConstant  KILOBYTE = 'KILOBYTE'
>VConstant  KIBIBYTE = 'KIBIBYTE'
>VConstant  KILO_BINARY_BYTE = 'KILO_BINARY_BYTE'
>VConstant  KILOBYTE_SI = 'KILOBYTE_SI'
>VConstant  MEGABYTE = 'MEGABYTE'
>VConstant  MEBIBYTE = 'MEBIBYTE'
>VConstant  MEGA_BINARY_BYTE = 'MEGA_BINARY_BYTE'
>VConstant  MEGABYTE_SI = 'MEGABYTE_SI'
>VConstant  GIGABYTE = 'GIGABYTE'
>VConstant  GIBIBYTE = 'GIBIBYTE'
>VConstant  GIGA_BINARY_BYTE = 'GIGA_BINARY_BYTE'
>VConstant  GIGABYTE_SI = 'GIGABYTE_SI'
>VConstant  TERABYTE = 'TERABYTE'
>VConstant  TEBIBYTE = 'TEBIBYTE'
>VConstant  TERA_BINARY_BYTE = 'TERA_BINARY_BYTE'
>VConstant  TERABYTE_SI = 'TERABYTE_SI'
>VConstant  PETABYTE = 'PETABYTE'
>VConstant  PEBIBYTE = 'PEBIBYTE'
>VConstant  PETA_BINARY_BYTE = 'PETA_BINARY_BYTE'
>VConstant  PETABYTE_SI = 'PETABYTE_SI'
>VConstant  EXABYTE = 'EXABYTE'
>VConstant  EXBIBYTE = 'EXBIBYTE'
>VConstant  EXA_BINARY_BYTE = 'EXA_BINARY_BYTE'
>VConstant  EXABYTE_SI = 'EXABYTE_SI'
>VConstant  ZETTABYTE = 'ZETTABYTE'
>VConstant  ZEBIBYTE = 'ZEBIBYTE'
>VConstant  ZETTA_BINARY_BYTE = 'ZETTA_BINARY_BYTE'
>VConstant  ZETTABYTE_SI = 'ZETTABYTE_SI'
>VConstant  YOTTABYTE = 'YOTTABYTE'
>VConstant  YOBIBYTE = 'YOBIBYTE'
>VConstant  YOTTA_BINARY_BYTE = 'YOTTA_BINARY_BYTE'
>VConstant  YOTTABYTE_SI = 'YOTTABYTE_SI'

Properties

>VPropertyprotectedarray $_units = array('BIT' => array('0.125', 'b'), 'CRUMB' => array('0.25', 'crumb'), 'NIBBLE' => array('0.5', 'nibble'), 'BYTE' => array('1', 'B'), 'KILOBYTE' => array('1024', 'kB'), 'KIBIBYTE' => array('1024', 'KiB'), 'KILO_BINARY_BYTE' => array('1024', 'KiB'), 'KILOBYTE_SI' => array('1000', 'kB.'), 'MEGABYTE' => array('1048576', 'MB'), 'MEBIBYTE' => array('1048576', 'MiB'), 'MEGA_BINARY_BYTE' => array('1048576', 'MiB'), 'MEGABYTE_SI' => array('1000000', 'MB.'), 'GIGABYTE' => array('1073741824', 'GB'), 'GIBIBYTE' => array('1073741824', 'GiB'), 'GIGA_BINARY_BYTE' => array('1073741824', 'GiB'), 'GIGABYTE_SI' => array('1000000000', 'GB.'), 'TERABYTE' => array('1099511627776', 'TB'), 'TEBIBYTE' => array('1099511627776', 'TiB'), 'TERA_BINARY_BYTE' => array('1099511627776', 'TiB'), 'TERABYTE_SI' => array('1000000000000', 'TB.'), 'PETABYTE' => array('1125899906842624', 'PB'), 'PEBIBYTE' => array('1125899906842624', 'PiB'), 'PETA_BINARY_BYTE' => array('1125899906842624', 'PiB'), 'PETABYTE_SI' => array('1000000000000000', 'PB.'), 'EXABYTE' => array('1152921504606846976', 'EB'), 'EXBIBYTE' => array('1152921504606846976', 'EiB'), 'EXA_BINARY_BYTE' => array('1152921504606846976', 'EiB'), 'EXABYTE_SI' => array('1000000000000000000', 'EB.'), 'ZETTABYTE' => array('1180591620717411303424', 'ZB'), 'ZEBIBYTE' => array('1180591620717411303424', 'ZiB'), 'ZETTA_BINARY_BYTE' => array('1180591620717411303424', 'ZiB'), 'ZETTABYTE_SI' => array('1000000000000000000000', 'ZB.'), 'YOTTABYTE' => array('1208925819614629174706176', 'YB'), 'YOBIBYTE' => array('1208925819614629174706176', 'YiB'), 'YOTTA_BINARY_BYTE' => array('1208925819614629174706176', 'YiB'), 'YOTTABYTE_SI' => array('1000000000000000000000000', 'YB.'), 'STANDARD' => 'BYTE')
Calculations for all binary units
Default valuearray('BIT' => array('0.125', 'b'), 'CRUMB' => array('0.25', 'crumb'), 'NIBBLE' => array('0.5', 'nibble'), 'BYTE' => array('1', 'B'), 'KILOBYTE' => array('1024', 'kB'), 'KIBIBYTE' => array('1024', 'KiB'), 'KILO_BINARY_BYTE' => array('1024', 'KiB'), 'KILOBYTE_SI' => array('1000', 'kB.'), 'MEGABYTE' => array('1048576', 'MB'), 'MEBIBYTE' => array('1048576', 'MiB'), 'MEGA_BINARY_BYTE' => array('1048576', 'MiB'), 'MEGABYTE_SI' => array('1000000', 'MB.'), 'GIGABYTE' => array('1073741824', 'GB'), 'GIBIBYTE' => array('1073741824', 'GiB'), 'GIGA_BINARY_BYTE' => array('1073741824', 'GiB'), 'GIGABYTE_SI' => array('1000000000', 'GB.'), 'TERABYTE' => array('1099511627776', 'TB'), 'TEBIBYTE' => array('1099511627776', 'TiB'), 'TERA_BINARY_BYTE' => array('1099511627776', 'TiB'), 'TERABYTE_SI' => array('1000000000000', 'TB.'), 'PETABYTE' => array('1125899906842624', 'PB'), 'PEBIBYTE' => array('1125899906842624', 'PiB'), 'PETA_BINARY_BYTE' => array('1125899906842624', 'PiB'), 'PETABYTE_SI' => array('1000000000000000', 'PB.'), 'EXABYTE' => array('1152921504606846976', 'EB'), 'EXBIBYTE' => array('1152921504606846976', 'EiB'), 'EXA_BINARY_BYTE' => array('1152921504606846976', 'EiB'), 'EXABYTE_SI' => array('1000000000000000000', 'EB.'), 'ZETTABYTE' => array('1180591620717411303424', 'ZB'), 'ZEBIBYTE' => array('1180591620717411303424', 'ZiB'), 'ZETTA_BINARY_BYTE' => array('1180591620717411303424', 'ZiB'), 'ZETTABYTE_SI' => array('1000000000000000000000', 'ZB.'), 'YOTTABYTE' => array('1208925819614629174706176', 'YB'), 'YOBIBYTE' => array('1208925819614629174706176', 'YiB'), 'YOTTA_BINARY_BYTE' => array('1208925819614629174706176', 'YiB'), 'YOTTABYTE_SI' => array('1000000000000000000000000', 'YB.'), 'STANDARD' => 'BYTE')Details
Type
array
Documentation was generated by phpDocumentor 2.2.0 .