Skip to content

@ralphschuler.ai function caller.index.<internal>.ReadableStreamBYOBRequest

github-actions edited this page Nov 26, 2023 · 1 revision

Class: ReadableStreamBYOBRequest

index.<internal>.ReadableStreamBYOBRequest

A pull-into request in a ReadableByteStreamController.

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new ReadableStreamBYOBRequest(): ReadableStreamBYOBRequest

Returns

ReadableStreamBYOBRequest

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:287

Accessors

view

get view(): null | ArrayBufferView

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

Returns

null | ArrayBufferView

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:291

Methods

respond

respond(bytesWritten): 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

Name Type
bytesWritten number

Returns

void

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:299


respondWithNewView

respondWithNewView(view): 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

Name Type
view ArrayBufferView

Returns

void

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:307

Typescript Libraries

Modules

Namespaces

Clone this wiki locally