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

Update decoder.ex #8

Open
wants to merge 3 commits into
base: brex-head
Choose a base branch
from
Open

Update decoder.ex #8

wants to merge 3 commits into from

Conversation

fazzone
Copy link

@fazzone fazzone commented May 23, 2020

i want to do some crazy stuff with bazel; bazel likes to output various metadata in files which consist of length-delimited serialized protobufs. They say you can use parseDelimitedFrom in the java protobuf library https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/Parser.html#parseDelimitedFrom-java.io.InputStream- so this is basically that for elixir . Not sure if this is what :bytes_len is supposed to do but I couldn't make it work so I added a new case......

@fazzone fazzone marked this pull request as ready for review May 26, 2020 22:12
@fazzone fazzone requested a review from lizziepaquette May 26, 2020 22:12
Copy link
Collaborator

@lizziepaquette lizziepaquette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a testtt plzzz

Copy link
Collaborator

@lizziepaquette lizziepaquette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when you set wire type as an atom? (I saw tony setting wire type explicitly in tests) https://github.com/brexhq/protobuf-elixir/blob/master/lib/protobuf/encoder.ex#L248

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

Successfully merging this pull request may close these issues.

2 participants