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

x/adka/deno.d.ts>Deno.Buffer#reset

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
method Deno.Buffer.prototype.reset
import { Deno } from "https://deno.land/x/adka@0.1.5/deno.d.ts";
const { Buffer } = Deno;

Resets the buffer to be empty, but it retains the underlying storage for use by future writes. .reset() is the same as .truncate(0).