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

std/node/_buffer.d.ts>Buffer.of

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Buffer.of
import { Buffer } from "https://deno.land/std@0.118.0/node/_buffer.d.ts";

Creates a new Buffer using the passed {data}

Parameters

...items: number[]

to create a new Buffer