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

x/aleph/deps.ts>bytes.copy

The Full-stack Framework in Deno.
Go to Latest
function bytes.copy
import { bytes } from "https://deno.land/x/aleph@v0.3.0-alpha.5/deps.ts";
const { copy } = bytes;

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