Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should there be a streaming variant of the API? #2

Open
lucacasonato opened this issue Jun 10, 2021 · 1 comment
Open

Should there be a streaming variant of the API? #2

lucacasonato opened this issue Jun 10, 2021 · 1 comment

Comments

@lucacasonato
Copy link
Owner

Three questions that should be answered:

  1. Should there be a streaming variant of this API?
  2. Should it be using a TransformStream style API (TextEncoderStream / TextDecoderStream), or should we use a synchronous API (TextDecoder style)? Or should we have both?
  3. Should these be included in the first iteration of this proposal, or should this be an extension for later?
@saschanaz
Copy link

saschanaz commented Apr 3, 2023

Maybe we can have streaming variants + static functions? (#8)

[Exposed=*]
interface BinaryDecoder {
  constructor(BinaryEncoding encoding);

  readonly attribute BinaryEncoding encoding;

  [NewObject] static Uint8Array decode(BinaryEncoding encoding, DOMString input);
};
BinaryDecoder includes GenericTransformStream;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants