Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class ReadableByteStreamController
implements [rs.SDReadableByteStreamController]
import { ReadableByteStreamController } from "https://deno.land/x/deno@v0.30.0/cli/js/streams/readable-byte-stream-controller.ts";

Constructors

new
ReadableByteStreamController()

Properties

readonly
byobRequest: rs.SDReadableStreamBYOBRequest | undefined
readonly
desiredSize: number | null
[q.queue_]: Queue<{ buffer: ArrayBufferLike; byteOffset: number; byteLength: number; }>
[q.queueTotalSize_]: number
[rs.autoAllocateChunkSize_]: number | undefined
[rs.byobRequest_]: rs.SDReadableStreamBYOBRequest | undefined
[rs.cancelAlgorithm_]: rs.CancelAlgorithm
[rs.closeRequested_]: boolean
[rs.controlledReadableByteStream_]: rs.SDReadableStream<ArrayBufferView>
[rs.pendingPullIntos_]: rs.PullIntoDescriptor[]
[rs.pullAgain_]: boolean
[rs.pullAlgorithm_]: rs.PullAlgorithm<ArrayBufferView>
[rs.pulling_]: boolean
[rs.started_]: boolean
[rs.strategyHWM_]: number

Methods

close(): void
enqueue(chunk: ArrayBufferView): void
error(error?: shared.ErrorResult): void
[rs.cancelSteps_](reason: shared.ErrorResult): Promise<void>
[rs.pullSteps_](forAuthorCode: boolean): Promise<IteratorResult<ArrayBufferView, any>>