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

std/io/buffer.ts>BufReader#reset

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method BufReader.prototype.reset
import { BufReader } from "https://deno.land/std@0.164.0/io/buffer.ts";

Discards any buffered data, resets all state, and switches the buffered reader to read from r.