Skip to main content

Function: toClonedArrayBuffer()

function toClonedArrayBuffer(view: ArrayBufferView): ArrayBuffer;

Defined in: electron/services/ipc/utils.ts:185

Converts an ArrayBufferView into a standalone ArrayBuffer containing exactly the view's bytes.

Parameters​

view​

ArrayBufferView

Returns​

ArrayBuffer

Remarks​

Useful for IPC payloads when you want to send a plain ArrayBuffer to the renderer without leaking extra bytes from a larger underlying buffer.