Skip to content

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

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

Interface: UnderlyingByteSource

index.<internal>.UnderlyingByteSource

An underlying byte source for constructing a ReadableStream.

Table of contents

Properties

Properties

autoAllocateChunkSize

Optional autoAllocateChunkSize: number

Can be set to a positive integer to cause the implementation to automatically allocate buffers for the underlying source code to write into. In this case, when a consumer is using a default reader, the stream implementation will automatically allocate an ArrayBuffer of the given size, so that controller.byobRequest is always present, as if the consumer was using a BYOB reader.

Defined in

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


cancel

Optional cancel: UnderlyingSourceCancelCallback

{@inheritDoc UnderlyingSource.cancel}

Defined in

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


pull

Optional pull: UnderlyingByteSourcePullCallback

{@inheritDoc UnderlyingSource.pull}

Defined in

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


start

Optional start: UnderlyingByteSourceStartCallback

{@inheritDoc UnderlyingSource.start}

Defined in

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


type

type: "bytes"

Can be set to "bytes" to signal that the constructed ReadableStream is a readable byte stream. This ensures that the resulting ReadableStream will successfully be able to vend BYOB readers via its ReadableStream.(getReader:1) | getReader() method. It also affects the controller argument passed to the () and () methods.

Defined in

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

Typescript Libraries

Modules

Namespaces

Clone this wiki locally