Module

std/node/buffer.ts>Buffer.alloc

Deno standard library
Go to Latest
method Buffer.alloc
import { Buffer } from "https://dotland.deno.dev/std@0.110.0/node/buffer.ts";

Allocates a new Buffer of size bytes.

Parameters

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