Skip to content

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

@utkarshkukreti

Description

@utkarshkukreti

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.

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