Skip to content

Streaming / multi-shot #13

Closed
Closed
@bakkot

Description

@bakkot

@phoddie expressed a desire for this API to support streaming or some other multi-shot API. Let's use this issue to discuss what that might look like.

Note that there is also a WHATWG proposal for base64 encoding. Currently that proposal does not include streaming, with the comment

this could be later implemented in a BinaryEncoderStream / BinaryDecoderStream, or using the same synchronous API as text encoding, using a stream: true option on the encode / decode methods.

For prior art, see the stream option in the TextDecoder API, the encodeInto method in the TextEncoder API, and the TextEncoderStream and TextDecoderStream APIs (which are transform streams).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions