Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bun.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Buffer class extends Uint8Array with a number of additional methods. Use Buffer.from() to create a Buffer instance from a Uint8Array.
const arr: Uint8Array = ...
const buf = Buffer.from(arr);

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