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

std/node/buffer.ts>default#slice

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

Returns a new Buffer that references the same memory as the original, but offset and cropped by the start and end indices.

Parameters

optional
begin = [UNSUPPORTED]
optional
end = [UNSUPPORTED]

Returns

Buffer