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:
parent
e362cbfb39
commit
17e6b3ac8f
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user