MCPcopy Create free account
hub / github.com/Ptechgithub/configs / unsafeStringify

Function unsafeStringify

worker.js:625–627  ·  view source on GitHub ↗
(arr, offset = 0)

Source from the content-addressed store, hash-verified

623}
624
625function unsafeStringify(arr, offset = 0) {
626 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();
627}
628
629function stringify(arr, offset = 0) {
630 const uuid = unsafeStringify(arr, offset);

Callers 1

stringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected