Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for Uint8Array.prototype.setFromBase64().
Developer library 6
Firefox 133 release notes for developers
nd Uint8Array.fromHex() static methods for constructing a new `Uint8Array` object from a base64- and hex-encoded string, respectively. - Uint8Array.prototype.setFromBase64(), and Uint8Array.prototype.setFromHex() instance methods for populating an existing `Uint8Array` object with bytes from a base64- or hex-encoded string. - Uint8Array.prototype.toBase64() and Uint8Array.prototype.toHex() instance methods, which
Uint8Array
modification of `Uint8Array` data to/from hex strings and base64 strings. - Uint8Array.fromBase64(), Uint8Array.prototype.toBase64(), and Uint8Array.prototype.setFromBase64() for working with [base64](/docs/Glossary/Base64) strings, where 3 bytes are encoded by 4 characters that are either 0–9, A–Z, a–z, "+", and "/" (or "-" and "\_", if using URL-safe base64). - Uint8Array.fromHex(), Uint8Array.prototype.toHex(), a
Uint8Array.prototype.setFromHex()
- Only contain characters in the hexadecimal alphabet, which includes 0–9 and A–F (case-insensitive). - Not contain whitespace (unlike Uint8Array.prototype.setFromBase64()). Note that the string is only read up to the point where the array is filled, so any invalid hex syntax after that point is ignored. ### Return value An object containing the following properties: - `read` - : The number of hex chara
Uint8Array.prototype.setFromBase64()
The **`setFromBase64()`** method of Uint8Array instances populates this `Uint8Array` object with bytes from a [base64](/docs/Glossary/Base64)-encoded string, returning an object indicating how many bytes were read and written. This method is most suitable for populating a pre-allocated array buffer. If you just want to create a new `Uint8Array` object from a base64-encoded string, use the static method Uint8Array.fr
Uint8Array.prototype.toBase64()
polyfill of `Uint8Array.prototype.toBase64`](https://www.npmjs.com/package/es-arraybuffer-base64) - Uint8Array - Uint8Array.fromBase64() - Uint8Array.prototype.setFromBase64() - Window.btoa()
Uint8Array.fromHex()
- Only contain characters in the hexadecimal alphabet, which includes 0–9 and A–F (case-insensitive). - Not contain whitespace (unlike Uint8Array.prototype.setFromBase64()). ### Return value A new `Uint8Array` object containing the decoded bytes from the hexadecimal string. ### Exceptions - SyntaxError - : Thrown if the input string contains characters outside the hex alphabet, or its length is odd. - TypeE