Skip to main content
Module

std/node/buffer.ts>default.alloc

Deno standard library
Go to Latest
method default.alloc
import { default } from "https://deno.land/std@0.66.0/node/buffer.ts";

Allocates a new Buffer of size bytes.

Parameters

size: number
optional
fill:
| number
| string
| Uint8Array
| Buffer
optional
encoding = [UNSUPPORTED]

Returns

Buffer