字节流


🌐 Byte streams

这个 API 中的所有数据都表示为 <Uint8Array> 字节。当字符串传递给 from()push()pipeTo() 时,会自动进行 UTF-8 编码。这消除了编码的歧义,并且支持在流和本地代码之间进行零拷贝传输。

🌐 All data in this API is represented as <Uint8Array> bytes. Strings are automatically UTF-8 encoded when passed to from(), push(), or pipeTo(). This removes ambiguity around encodings and enables zero-copy transfers between streams and native code.