public function decode($based)
    {
        if (!is_array($based)) {
            $based = str_split($based);
        }
        $numbers = [];
        $char2int = $this->char2int;
        foreach ($based as $char) {
            if (isset($char2int[$char])) {
                $numbers[] = $char2int[$char];
            } else {
                throw new InvalidBase64($based);
            }
        }
        return $numbers;
    }
public function decode($based)
    {
        if (!is_array($based)) {
            $based = str_split($based);
        }
        $numbers = [];
        $char2int = $this->char2int;
        foreach ($based as $char) {
            if (isset($char2int[$char])) {
                $numbers[] = $char2int[$char];
            } else {
                throw new InvalidBase64($based);
            }
        }
        return $numbers;
    }
public function decode ( $ based ) { if ( ! is_array ( $ based ) ) { $ based = str_split ( $ based ) ; } $ numbers = [ ] ; $ char2int = $ this -> char2int ; foreach ( $ based as $ char ) { if ( isset ( $ char2int [ $ char ] ) ) { $ numbers [ ] = $ char2int [ $ char ] ; } else { throw new InvalidBase64 ( $ based ) ; } } return $ numbers ; }
Decodes a base64-string to a block of numbers

@param string|string[] $based
the base64-string or the array of characters
@return int[]
@throws \axy\codecs\base64vlq\errors\InvalidBase64
Decodes a base64 - string to a block of numbers