setFromBase64

Bun

Symbol

Uint8Array.setFromBase64

setFromBase64(base64: string, offset?: number): { read: number; written: number }

Set the contents of the Uint8Array from a base64 encoded string

@param base64

The base64 encoded string to decode into the array

@param offset

Optional starting index to begin setting the decoded bytes (default: 0)