ReadableByteStreamController

interface

interface ReadableByteStreamController

variable

var ReadableByteStreamController: { … }

The constructor object for ReadableByteStreamController.

Instances are passed to a byte-oriented ReadableStream's underlying source callbacks rather than constructed directly, so calling the constructor throws.

Constructors

constructor

new ReadableByteStreamController(): never

Properties

byobRequest

readonly byobRequest: ReadableStreamBYOBRequest | null

desiredSize

readonly desiredSize: number | null

prototype

readonly prototype: ReadableByteStreamController

Methods

close

close(): void

enqueue

enqueue(chunk: ArrayBufferView): void

error

error(e?: any): void