MCPcopy
hub / github.com/prisma/prisma / encodeBase64url

Function encodeBase64url

packages/param-graph/src/serialization.ts:130–132  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

128}
129
130function encodeBase64url(bytes: Uint8Array): string {
131 return Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString('base64url')
132}
133
134function decodeBase64url(str: string): Uint8Array {
135 return Buffer.from(str, 'base64url')

Callers 1

serializeMethod · 0.85

Calls 2

fromMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected