Deno.Buffer.prototype.reset - Deno documentation
method Deno.Buffer.prototype.reset
Buffer.prototype.reset(): void

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

Return Type

void