1
0
mirror of https://github.com/altlinux/admc.git synced 2025-01-21 14:03:42 +03:00

Add bytearray_list_to_string_list utility f-n to ad_utils

This commit is contained in:
Semyon Knyazev 2024-07-29 20:07:53 +04:00
parent e362cbfb39
commit 17e6b3ac8f
2 changed files with 13 additions and 0 deletions

View File

@ -491,3 +491,14 @@ QHash<int, QString> attribute_value_bit_string_map(const QString &attribute)
}
return bit_string_map;
}
QList<QString> bytearray_list_to_string_list(const QList<QByteArray> &bytearray_list) {
QList<QString> out;
for (const QByteArray &bytes : bytearray_list) {
const QString string = bytes;
out.append(string);
}
return out;
}

View File

@ -88,4 +88,6 @@ QString int_to_hex_string(const int n);
QHash<int, QString> attribute_value_bit_string_map(const QString &attribute);
QList<QString> bytearray_list_to_string_list(const QList<QByteArray> &bytearray_list);
#endif /* AD_UTILS_H */