pinterest / riffed

Provides idiomatic Elixir bindings for Apache Thrift
Apache License 2.0
308 stars 37 forks source link

Use of binary_protocol #56

Closed MeerKatDev closed 4 years ago

MeerKatDev commented 4 years ago

How do I deserialize a binary_message, like a simple function call? (e.g. add(1,1)) I can't seem to find the right usage of the:thrift_protocol.read function

scohen commented 4 years ago

Any reason you're using riffed rather than https://github.com/pinterest/elixir-thrift? That library allows you to deserialize messages much more easily; riffed piggybacks off of the erlang thrift implementation, which makes this kind of operation pretty difficult.