Usage

import * as mod from "https://deno.land/std@0.107.0/io/util.ts";

§Functions

copy

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

iter

Turns a Reader, r, into an async iterator.

iterSync

Turns a ReaderSync, r, into an iterator.

readAll

Read Reader r until EOF (null) and resolve to the content as Uint8Array`.

readAllSync

Synchronously reads Reader r until EOF (null) and returns the content as Uint8Array.

readRange

Read a range of bytes from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

readRangeSync

Read a range of bytes synchronously from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

writeAll

Write all the content of the array buffer (arr) to the writer (w).

writeAllSync

Synchronously write all the content of the array buffer (arr) to the writer (w).

§Interfaces

ByteRange