Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/io/iotest.ts>OneByteReader

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class OneByteReader
implements Reader
import { OneByteReader } from "https://deno.land/std@0.42.0/io/iotest.ts";

OneByteReader returns a Reader that implements each non-empty Read by reading one byte from r.

Constructors

new
OneByteReader(r: Reader)

Methods

read(p: Uint8Array): Promise<number | null>