Files
Zos/Skills/@be/node_modules/hls.js/lib/utils/hex.js

22 lines
328 B
JavaScript
Raw Normal View History

'use strict';
/**
* hex dump helper class
*/
var Hex = {
hexDump: function hexDump(array) {
var i,
str = '';
for (i = 0; i < array.length; i++) {
var h = array[i].toString(16);
if (h.length < 2) {
h = '0' + h;
}
str += h;
}
return str;
}
};
module.exports = Hex;