src/Psecio/Iniscan/Cast.php
public function castPowers ($casted) {
        $postfixes = array(
            'K' => 1024,
            'M' => 1024 * 1024,
            'G' => 1024 * 1024 * 1024,
        );
        $matches = array();
        if (preg_match('/^([0-9]+)([' . implode('', array_keys($postfixes)) . '])$/', $casted, $matches)) {
            $casted = $matches[1] * $postfixes[$matches[2]];
        }
        return $casted;
    }
public function castPowers ($casted) {
        $postfixes = array(
            'K' => 1024,
            'M' => 1024 * 1024,
            'G' => 1024 * 1024 * 1024,
        );
        $matches = array();
        if (preg_match('/^([0-9]+)([' . implode('', array_keys($postfixes)) . '])$/', $casted, $matches)) {
            $casted = $matches[1] * $postfixes[$matches[2]];
        }
        return $casted;
    }
public function castPowers ( $ casted ) { $ postfixes = array ( 'K' => 1024 , 'M' => 1024 * 1024 , 'G' => 1024 * 1024 * 1024 , ) ; $ matches = array ( ) ; if ( preg_match ( '/^([0-9]+)([' . implode ( '' , array_keys ( $ postfixes ) ) . '])$/' , $ casted , $ matches ) ) { $ casted = $ matches [ 1 ] * $ postfixes [ $ matches [ 2 ] ] ; } return $ casted ; }
Cast the byte values ending with G, M or K to full integer values

@param $casted
@internal param $value
@return mixed "Casted" result
Cast the byte values ending with G M or K to full integer values