MCPcopy Index your code
hub / github.com/hoothin/UserScripts / decToHex

Function decToHex

Picviewer CE+/dist.user.js:693–700  ·  view source on GitHub ↗
(dec, bytes)

Source from the content-addressed store, hash-verified

691 * @returns {string} the result.
692 */
693var decToHex = function(dec, bytes) {
694 var hex = "", i;
695 for (i = 0; i < bytes; i++) {
696 hex += String.fromCharCode(dec & 0xff);
697 dec = dec >>> 8;
698 }
699 return hex;
700};
701
702/**
703 * Generate the UNIX part of the external file attributes.

Callers 3

generateZipPartsFunction · 0.70
generateDataDescriptorsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected