copyBytesFrom
BufferConstructor.copyBytesFrom
**copyBytesFrom**(view, offset?, length?): [Buffer](/references/product/variables/Buffer-1)
Copies the underlying memory of view
into a new Buffer
.
Parameters
The {TypedArray} to copy.
offset
numberThe starting offset within
view
.length
numberThe number of elements from
view
to copy.Returns
Since
v19.8.0
Was this section helpful?