Merge branch 'master' into develop

This commit is contained in:
Jan Prochazka
2021-10-17 11:15:40 +02:00
8 changed files with 58 additions and 20 deletions

View File

@@ -14,3 +14,4 @@ export * from './filterName';
export * from './diffTools';
export * from './schemaEditorTools';
export * from './yamlModelConv';
export * from './stringTools';

View File

@@ -0,0 +1,12 @@
export function arrayToHexString(byteArray) {
return byteArray.reduce((output, elem) => output + ('0' + elem.toString(16)).slice(-2), '');
}
export function hexStringToArray(inputString) {
var hex = inputString.toString();
var res = [];
for (var n = 0; n < hex.length; n += 2) {
res.push(parseInt(hex.substr(n, 2), 16));
}
return res;
}