/** * @return KiloBytes */ public function kiloBytes() { return KiloBytes::allocateBytes(Bytes::allocateUnits($this->numberOfBytes())); }
/** * @param Bytes $bytes * @return self */ public static function allocateBytes(Bytes $bytes) { return KiloBytes::allocateUnits(self::calculateUnitsFromBytes($bytes->numberOfBytes())); }