Skip to main content
Module

std/node/buffer.ts>Buffer.alloc

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

Allocates a new Buffer of size bytes.

Parameters

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