rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

The Node.js Buffer class provides a way to view and manipulate data in an underlying ArrayBuffer, which is available via the buffer property.

const nodeBuf = Buffer.alloc(64);
const arrBuf = nodeBuf.buffer;

See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.

Was this page helpful?

Suggest editsRaise issue

[

Convert a Buffer to a string

Previous

](../buffer-to-string/index.md)[

Convert a Buffer to a blob

Next

](../buffer-to-blob/index.md)