protected static function getData($code) {
        if(preg_match('/^\[&([a-z\d+\/]+=*)\]$/i', $code, $matches) !== 1) {
            throw new ChatlinkFormatException("Chatcode does not match the expected format.");
        }

        $base64 = $matches[1];

        $data = [];
        foreach (str_split(base64_decode($base64)) as $char) {
            $data[] = ord($char);
        }

        return $data;
    }