本页还没有译文
本页 2 段还没译成日本語,下面显示的是英文原文。Convert a Node.js Readable to an ArrayBuffer
还没翻译译自英文(bun.com)本页 2 段都还没译
To convert a Node.js Readable stream to an ArrayBuffer in Bun, create a Response with the stream as the body, then call arrayBuffer().
import { Readable } from "stream";
const stream = Readable.from(["Hello, ", "world!"]);
const buf = await new Response(stream).arrayBuffer();AI 翻译查看英文原文