字节流
🌐 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.