MCPcopy Index your code
hub / github.com/Ptechgithub/pp-worker / unsafeStringify

Function unsafeStringify

_worker.js:701–703  ·  view source on GitHub ↗
(arr, offset = 0)

Source from the content-addressed store, hash-verified

699}
700
701function unsafeStringify(arr, offset = 0) {
702 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();
703}
704
705function stringify(arr, offset = 0) {
706 const uuid = unsafeStringify(arr, offset);

Callers 1

stringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected