Skip to main content
Module

std/node/buffer.ts>default#copy

Deno standard library
Go to Latest
method default.prototype.copy
import { default } from "https://deno.land/std@0.57.0/node/buffer.ts";

Copies data from a region of buf to a region in target, even if the target memory region overlaps with buf.

Parameters

targetBuffer: Buffer | Uint8Array
optional
targetStart = [UNSUPPORTED]
optional
sourceStart = [UNSUPPORTED]
optional
sourceEnd = [UNSUPPORTED]

Returns

number