Skip to main content

interface Uint8Array

unstable

Methods #

#toBase64(options?: { alphabet?: "base64" | "base64url"; omitPadding?: boolean; }): string

Converts this Uint8Array object to a base64 string.

MDN

#setFromBase64(
string: string,
options?: { alphabet?: "base64" | "base64url"; lastChunkHandling?:
"loose"
| "strict"
| "stop-before-partial"
; }
,
): { read: number; written: number; }

Populates this Uint8Array object with data from a base64 string.

MDN

#toHex(): string

Converts this Uint8Array object to a hex string.

MDN

#setFromHex(string: string): { read: number; written: number; }

Populates this Uint8Array object with data from a hex string.

MDN

Did you find what you needed?

Privacy policy