Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/io/util.ts>copyBytes

A modern runtime for JavaScript and TypeScript.
Go to Latest
function copyBytes
import { copyBytes } from "https://deno.land/x/deno@v1.0.0/std/io/util.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