本页还没有译文
本页 3 段还没译成한국어,下面显示的是英文原文。Convert a ReadableStream to a Buffer
还没翻译译自英文(bun.com)本页 3 段都还没译
To convert a ReadableStream to a Buffer, read its contents into an ArrayBuffer with Bun.readableStreamToArrayBuffer, then create a Buffer that points to it.
const stream = new ReadableStream();
const arrBuf = await Bun.readableStreamToArrayBuffer(stream);
const nodeBuf = Buffer.from(arrBuf);AI 翻译查看英文原文