Skip to content

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