/**
  * @param Bytes $bytes
  * @return self
  */
 public static function allocateBytes(Bytes $bytes)
 {
     return TeraBytes::allocateUnits(self::calculateUnitsFromBytes($bytes->numberOfBytes()));
 }
Exemple #2
0
 /**
  * @param Bytes $bytes
  * @return bool
  */
 public function largerThan(Bytes $bytes)
 {
     return $this->numberOfBytes() > $bytes->numberOfBytes();
 }