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.detached.
Developer library 6
WebAssembly.Memory
The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a [`WebAssembly.Instance`](/docs/WebAssembly/Reference/JavaScript_interface/Instance). Both WebAssembly and JavaScript can create `Memory` objects. If you want to access the memory created in JS from WebAssembly, or vice versa, you can export the memory from the module to JavaScript or impor
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
Firefox 122 release notes for developers
distance from the edge of the element (`rect()`) or coordinates and size (`xywh()`). ([Firefox bug 1868722](https://bugzil.la/1868722)). ### JavaScript - The ArrayBuffer.prototype.transfer() and ArrayBuffer.prototype.transferToFixedLength() methods can now be used to [transfer ownership](/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer#transferring_arraybuffers) of memory from one ArrayBuffer to another. A
ArrayBuffer
The **`ArrayBuffer`** object is used to represent a generic raw binary data buffer. It is an array of bytes, often referred to in other languages as a "byte array". You cannot directly manipulate the contents of an `ArrayBuffer`; instead, you create one of the [typed array objects](/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) or a DataView object which represents the buffer in a specific format, and use
ArrayBuffer.prototype.byteLength
The **`byteLength`** accessor property of ArrayBuffer instances returns the length (in bytes) of this array buffer. JavaScript Demo: ArrayBuffer.prototype.byteLength ```js interactive-example // Create an ArrayBuffer with a size in bytes const buffer = new ArrayBuffer(8); // Use byteLength to check the size const bytes = buffer.byteLength; console.log(bytes); // Expected output: 8 ``` ## Description The `byteLe