Options
All
  • Public
  • Public/Protected
  • All
Menu

A pull-into request in a ReadableByteStreamController.

Hierarchy

  • ReadableStreamBYOBRequest

Index

Constructors

Properties

Methods

Constructors

Private constructor

Properties

Readonly view

view: null | ArrayBufferView

Returns the view for writing in to, or null if the BYOB request has already been responded to.

Methods

respond

  • respond(bytesWritten: number): void
  • Indicates to the associated readable byte stream that bytesWritten bytes were written into view, causing the result be surfaced to the consumer.

    After this method is called, view will be transferred and no longer modifiable.

    Parameters

    • bytesWritten: number

    Returns void

respondWithNewView

  • respondWithNewView(view: ArrayBufferView): void
  • Indicates to the associated readable byte stream that instead of writing into view, the underlying byte source is providing a new ArrayBufferView, which will be given to the consumer of the readable byte stream.

    After this method is called, view will be transferred and no longer modifiable.

    Parameters

    • view: ArrayBufferView

    Returns void

Generated using TypeDoc