Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/buffer.ts>default#copy

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method default.prototype.copy
import { default } from "https://deno.land/std@0.74.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