PrismLauncher/launcher/ApplicationMessage.h
Edgars Cīrulis 52dc9068e5
ApplicationMessage: Use QHash instead of QMap
QHash provides faster lookup times than QMap because it uses a hash table to store the elements, while QMap uses a self-balancing binary tree.

Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
2022-12-15 16:17:19 +02:00

14 lines
230 B
C

#pragma once
#include <QString>
#include <QHash>
#include <QByteArray>
struct ApplicationMessage {
QString command;
QHash<QString, QString> args;
QByteArray serialize();
void parse(const QByteArray & input);
};