Size
extends Enum
in package
Contains enumerable byte-size values
Table of Contents
Constants
- B = 1
- BYTE = 1
- BYTES = 1
- EB = 1152921504606846976
- EXABYTE = 1152921504606846976
- EXABYTES = 1152921504606846976
- GB = 1073741824
- GIGABYTE = 1073741824
- GIGABYTES = 1073741824
- KB = 1024
- KILOBYTE = 1024
- KILOBYTES = 1024
- MB = 1048576
- MEGABYTE = 1048576
- MEGABYTES = 1048576
- PB = 1125899906842624
- PETABYTE = 1125899906842624
- PETABYTES = 1125899906842624
- TB = 1099511627776
- TERABYTE = 1099511627776
- TERABYTES = 1099511627776
Properties
- $cache : array<string|int, mixed>
Methods
- keys() : array<string|int, mixed>
- Returns the names (or keys) of all of constants in the enum
- values() : array<string|int, mixed>
- Return the names and values of all the constants in the enum
Constants
B
public
mixed
B
= 1
BYTE
public
mixed
BYTE
= 1
BYTES
public
mixed
BYTES
= 1
EB
public
mixed
EB
= 1152921504606846976
EXABYTE
public
mixed
EXABYTE
= 1152921504606846976
EXABYTES
public
mixed
EXABYTES
= 1152921504606846976
GB
public
mixed
GB
= 1073741824
GIGABYTE
public
mixed
GIGABYTE
= 1073741824
GIGABYTES
public
mixed
GIGABYTES
= 1073741824
KB
public
mixed
KB
= 1024
KILOBYTE
public
mixed
KILOBYTE
= 1024
KILOBYTES
public
mixed
KILOBYTES
= 1024
MB
public
mixed
MB
= 1048576
MEGABYTE
public
mixed
MEGABYTE
= 1048576
MEGABYTES
public
mixed
MEGABYTES
= 1048576
PB
public
mixed
PB
= 1125899906842624
PETABYTE
public
mixed
PETABYTE
= 1125899906842624
PETABYTES
public
mixed
PETABYTES
= 1125899906842624
TB
public
mixed
TB
= 1099511627776
TERABYTE
public
mixed
TERABYTE
= 1099511627776
TERABYTES
public
mixed
TERABYTES
= 1099511627776
Properties
$cache
protected
static array<string|int, mixed>
$cache
= array()
A cache of all enum values to increase performance
Methods
keys()
Returns the names (or keys) of all of constants in the enum
public
static keys() : array<string|int, mixed>
Return values
array<string|int, mixed>values()
Return the names and values of all the constants in the enum
public
static values() : array<string|int, mixed>