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

Add Bytes.decoder : Json.Decode.Decoder Bytes #16

Open
utkarshkukreti opened this issue Jun 12, 2019 · 3 comments
Open

Add Bytes.decoder : Json.Decode.Decoder Bytes #16

utkarshkukreti opened this issue Jun 12, 2019 · 3 comments

Comments

@utkarshkukreti
Copy link

A Bytes type is just a DataView so the implementation should be pretty straightforward, just like File.decoder.

Do you think this approach is correct? Would you like me to open a PR with this change?

Use case: I have data in a Uint8Array in JS and I want to use it with an elm-protocol-buffers-like package but I can't send it over a port because there's no way to decode into Bytes.

@rupertlssmith
Copy link

I also would like to be able to send Bytes over a port (without having to go via base64 or some other hack).

@mzero
Copy link

mzero commented Jul 27, 2019

My use case is send/receiving MIDI data via WebMIDI.

@dullbananas
Copy link

It might also be great to have a Bytes.encode function too

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

4 participants