Skip to main content

Convert a Uint8Array to a Buffer

还没翻译译自英文(bun.com)本页 3 段都还没译

The Buffer class extends Uint8Array with additional methods. Use Buffer.from() to create a Buffer instance from a Uint8Array.

const arr: Uint8Array = ...
const buf = Buffer.from(arr);

See Binary Data.

翻訳 © 2026 fanyi.dev · 原文 © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)