GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

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 ArrayBuffer.prototype.byteLength.

Developer library 6

JavaScript instance accessor property page template

ayed at the top of the page. Format as `Constructor.prototype.nameOfTheProperty`. For example, the [`byteLength`](/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength) property of the [`ArrayBuffer`](/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) class has a _title_ of `ArrayBuffer.prototype.byteLength`. > > It's almost always the case that accessor properties are installed on `Constru

WebAssembly.Memory.prototype.grow()

n)); // 1n ``` ### Detachment upon growing Every call to `grow` will detach any references to the old `buffer`, even for `grow(0)`! Detachment means that the ArrayBuffer's `byteLength` becomes zero, and it no longer has bytes accessible to JavaScript. Accessing the `buffer` property after calling `grow`, will yield an `ArrayBuffer` with the correct length. ```js example-bad const memory = new WebAssembly.Memory({

Using the WebAssembly JavaScript API

ming counterparts, because they can turn the byte code directly into `Module`/`Instance` instances, cutting out the need to separately put the Response into an ArrayBuffer. This example (see our [instantiate-streaming.html](https://github.com/mdn/webassembly-examples/blob/main/js-api-examples/instantiate-streaming.html) demo on GitHub, and [view it live](https://mdn.github.io/webassembly-examples/js-api-examples/ins

Object.freeze()

/ Uint8Array [] Object.freeze(new Uint8Array(1)); // Has elements // TypeError: Cannot freeze array buffer views with elements Object.freeze(new DataView(new ArrayBuffer(32))); // No elements // DataView {} Object.freeze(new Float64Array(new ArrayBuffer(64), 32, 0)); // No elements // Float64Array [] Object.freeze(new Float64Array(new ArrayBuffer(64), 32, 2)); // Has elements // TypeError: Cannot freeze array buf

Uint8Array.prototype.setFromHex()

core-js`](https://core-js.io/docs/features/ecmascript/typed-arrays) - [es-shims polyfill of `Uint8Array.prototype.setFromHex`](https://www.npmjs.com/package/es-arraybuffer-base64) - Uint8Array - Uint8Array.fromHex() - Uint8Array.prototype.toHex() - parseInt()

Uint8Array.prototype.setFromBase64()

98, 62, 77, 68, 78, 60, 47, 98, 62, 0, 0, 0, 0] ``` ### Stream decoding This example is adapted from the [original proposal](https://github.com/tc39/proposal-arraybuffer-base64/blob/main/stream.mjs). It mimics the TextDecoder API with the `stream` option. Note the use of `lastChunkHandling: "stop-before-partial"` to handle incomplete chunks. ```js class Base64Decoder { #extra = ""; decode(chunk = "", options

JSON results · Services directory