Skip to main content
Module

std/bytes/mod.ts>copy

Deno standard library
Go to Latest
function copy
import { copy } from "https://deno.land/std@0.80.0/bytes/mod.ts";

Copy bytes from one Uint8Array to another. Bytes from src which don't fit into dst will not be copied.

Parameters

src: Uint8Array

Source byte array

dst: Uint8Array

Destination byte array

optional
off = [UNSUPPORTED]

Offset into dst at which to begin writing values from src.

Returns

number

number of bytes copied