copyMemory(to:)

Copies the contents of the array to the given buffer.

JSTypedArray.swift:137
func copyMemory(to buffer: UnsafeMutableBufferPointer<Element>)

Parameters

buffer

The buffer to copy the contents of the array to. The buffer must have enough space to accommodate the contents of the array.