Module

std/node/buffer.ts>Buffer#copy

Deno standard library
Go to Latest
method Buffer.prototype.copy
import { Buffer } from "https://dotland.deno.dev/std@0.110.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