init(buffer:)
Initialize a new instance of TypedArray in JavaScript environment with given buffer contents.
convenience init(buffer: UnsafeBufferPointer<Element>)
Parameters
- buffer
The buffer that will be copied to create a new instance of TypedArray