Uint8Array

interface · experimental

interface Uint8Array

Methods

toBase64

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

Converts this Uint8Array object to a base64 string.

MDN

setFromBase64

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

toHex(): string

Converts this Uint8Array object to a hex string.

MDN

setFromHex

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

Populates this Uint8Array object with data from a hex string.

MDN