1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-12 14:04:09 +02:00

Revert "Update releases/v1 with changes from master (#67)" (#68)

This reverts commit bdd6409dc1.
This commit is contained in:
Konrad Pabjan 2020-03-09 10:51:55 +01:00 committed by GitHub
parent bdd6409dc1
commit 948e5343c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
187 changed files with 15033 additions and 6120 deletions

24
node_modules/uuid/lib/bytesToUuid.js generated vendored Normal file
View file

@ -0,0 +1,24 @@
/**
* Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/
var byteToHex = [];
for (var i = 0; i < 256; ++i) {
byteToHex[i] = (i + 0x100).toString(16).substr(1);
}
function bytesToUuid(buf, offset) {
var i = offset || 0;
var bth = byteToHex;
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
return ([bth[buf[i++]], bth[buf[i++]],
bth[buf[i++]], bth[buf[i++]], '-',
bth[buf[i++]], bth[buf[i++]], '-',
bth[buf[i++]], bth[buf[i++]], '-',
bth[buf[i++]], bth[buf[i++]], '-',
bth[buf[i++]], bth[buf[i++]],
bth[buf[i++]], bth[buf[i++]],
bth[buf[i++]], bth[buf[i++]]]).join('');
}
module.exports = bytesToUuid;