init(buffer:)

Initialize a new instance of TypedArray in JavaScript environment with given buffer contents.

JSTypedArray.swift:64
convenience init(buffer: UnsafeBufferPointer<Element>)

Parameters

buffer

The buffer that will be copied to create a new instance of TypedArray