Skip to main content

Convert a Buffer to an ArrayBuffer

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

The Node.js Buffer class views and manipulates data in an underlying ArrayBuffer. The buffer property returns that ArrayBuffer.

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

See Binary Data.

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