Skip to main content
Module

std/io/mod.ts>StringReader

Deno standard library
Go to Latest
class StringReader
implements Reader
import { StringReader } from "https://deno.land/std@0.42.0/io/mod.ts";

Reader utility for strings

Constructors

new
StringReader(s: string)

Properties

private
buf: Uint8Array
private
offs: number

Methods

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