类:ReadableStreamBYOBRequest
¥Class: ReadableStreamBYOBRequest
在面向字节的流中使用 ReadableByteStreamController
和使用 ReadableStreamBYOBReader
时,readableByteStreamController.byobRequest
属性提供对表示当前读取请求的 ReadableStreamBYOBRequest
实例的访问。该对象用于获取为读取请求填充而提供的 ArrayBuffer
/TypedArray
的访问权限,并提供用于触发数据已提供信号的方法。
¥When using ReadableByteStreamController
in byte-oriented
streams, and when using the ReadableStreamBYOBReader
,
the readableByteStreamController.byobRequest
property
provides access to a ReadableStreamBYOBRequest
instance
that represents the current read request. The object
is used to gain access to the ArrayBuffer
/TypedArray
that has been provided for the read request to fill,
and provides methods for signaling that the data has
been provided.