Skip to main content
Module

std/node/buffer.ts>Buffer#copy

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