Skip to main content

array_copy

array_copy(source, source_position, destination, destination_position, length)

Copy data from one array to another Follows Java System.arraycopy interface

Kind: global function

ParamTypeDescription
sourceArray.<T> | ArrayLike.<T> | TypedArray | Uint8ClampedArray | Uint8Array | Uint32Array | Int32Array | Float32Array | Float64ArrayThe source array
source_positionnumberStarting position where to copy from inside the source array
destinationArray.<T> | ArrayLike.<T> | TypedArray | Uint8ClampedArray | Uint8Array | Uint32Array | Int32Array | Float32Array | Float64ArrayThe destination array
destination_positionnumberStarting position where to copy to inside the destination array
lengthnumberHow many elements should be copied