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

x/capi/deps/std/io.ts>copyN

[WIP] A framework for crafting interactions with Substrate chains
Latest
function copyN
import { copyN } from "https://deno.land/x/capi@v0.1.1-beta.1/deps/std/io.ts";

Copy N size at the most. If read size is lesser than N, then returns nread

Parameters

r: Reader

Reader

dest: Writer

Writer

size: number

Read size

Returns

Promise<number>