MCPcopy Create free account
hub / github.com/Ridter/cf_workers_proxy / stringify

Function stringify

js/worker.js:515–521  ·  view source on GitHub ↗
(arr, offset = 0)

Source from the content-addressed store, hash-verified

513 return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
514}
515function stringify(arr, offset = 0) {
516 const uuid = unsafeStringify(arr, offset);
517 if (!isValidUUID(uuid)) {
518 throw TypeError("Stringified UUID is invalid");
519 }
520 return uuid;
521}
522
523
524/**

Callers 1

processVlessHeaderFunction · 0.85

Calls 2

unsafeStringifyFunction · 0.85
isValidUUIDFunction · 0.85

Tested by

no test coverage detected