GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Guides
  • Reference
  • Blog
  • Install
  • Home
  • node:buffer
  • Fatob
  • Fbtoa
  • Vconstants
  • VINSPECT_MAX_BYTES
  • FisAscii
  • FisUtf8
  • VkMaxLength

This view

  • Original page
  • New address

GeezerVison is showing bun-docs.vercel.app — Node.js buffer module | API Reference | Bun

Reference

Node.js module

buffer

The 'node:buffer' module provides a way to handle raw binary data directly in memory. Buffers are instances of the Buffer class, which is a fixed-length sequence of bytes.

The module includes methods to create, read, write, concatenate, and compare buffers. It is fundamental for I/O operations, such as reading files, handling network streams, and interfacing with C++ addons.

Fully supported in Bun›

Fully implemented.

Functions 6

  • buffer.atob()

    MDN Reference

  • buffer.btoa()

    MDN Reference

  • buffer.isAscii()

    This function returns true if input contains only valid ASCII-encoded data, including the case in which input is empty.

  • buffer.isUtf8()

    This function returns true if input contains only valid UTF-8-encoded data, including the case in which input is empty.

  • buffer.resolveObjectURL()

    Resolves a 'blob:nodedata:...' an associated Blob object registered using a prior call to URL.createObjectURL().

  • buffer.transcode()

    Re-encodes the given Buffer or Uint8Array instance from one character encoding to another.

Interfaces 5

  • interface Blob

  • interface BlobPropertyBag

  • interface Buffer

    A typed array of 8-bit unsigned integer values.

  • interface File

  • interface FilePropertyBag

Types 4

  • type BlobPart

  • type ImplicitArrayBuffer

  • type TranscodeEncoding

  • type WithImplicitCoercion

Variables 7

  • const buffer.Blob

  • const buffer.Buffer

  • const buffer.constants

  • const buffer.File

  • const buffer.INSPECT_MAX_BYTES

  • const buffer.kMaxLength

  • const buffer.kStringMaxLength

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.