MCPcopy Create free account
hub / github.com/SamNet-dev/snix / toUint8

Function toUint8

cfworker/worker.js:202–202  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

200 return parts.join(":");
201}
202function toUint8(x) { return x instanceof ArrayBuffer ? new Uint8Array(x) : new Uint8Array(x.buffer || x); }
203function b64UrlToUint8(s) {
204 if (!s) return new Uint8Array(0);
205 s = s.replace(/-/g, "+").replace(/_/g, "/");

Callers 1

onMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected