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.transferToFixedLength().

Developer library 6

Firefox 122 release notes for developers

ates 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. After transfer, the original buffer is detached from its ori

ArrayBuffer

e() or ServiceWorker.postMessage(). In pure JavaScript, you can also transfer the ownership of memory from one `ArrayBuffer` to another using its transfer() or transferToFixedLength() method. When an `ArrayBuffer` is transferred, its original copy becomes _detached_ — this means it is no longer usable. At any moment, there will only be one copy of the `ArrayBuffer` that actually has access to the underlying memory.

ArrayBuffer.prototype.transfer()

_arraybuffers) for more information. `transfer()` preserves the resizability of this `ArrayBuffer`. If you want the new `ArrayBuffer` to be non-resizable, use transferToFixedLength() instead. There's no way to transfer a buffer that makes a fixed-length buffer become resizable. `transfer()` is very efficient because implementations may implement this method as a zero-copy move or a `realloc` — there does not need t

ArrayBuffer.prototype.transferToFixedLength()

The **`transferToFixedLength()`** method of ArrayBuffer instances creates a new non-resizable `ArrayBuffer` with the same byte content as this buffer, then detaches this buffer. ## Syntax ```js-nolint transferToFixedLength() transferToFixedLength(newByteLength) ``` ### Parameters - `newByteLength` - : The byteLength of the new `ArrayBuffer`. Defaults to the `byteLength` of this `ArrayBuffer`. - If `newByteL

ArrayBuffer.prototype.detached

fer.prototype.detached`](https://www.npmjs.com/package/arraybuffer.prototype.detached) - ArrayBuffer - ArrayBuffer.prototype.transfer() - ArrayBuffer.prototype.transferToFixedLength()

JavaScript typed arrays

the slice() method, you can efficiently copy a portion of the memory without creating views to manually copy each byte. - _Transfer_: Using the transfer() and transferToFixedLength() methods, you can transfer ownership of the memory span to a new buffer object. This is useful when transferring data between different execution contexts without copying. After the transfer, the original buffer is no longer usable. A `S

JSON results · Services directory