commit | 1c86c2695ece2de8828e41d73325ff12b3d06adf | [log] [tgz] |
---|---|---|
author | Takeru Ohta <phjgt308@gmail.com> | Tue Dec 25 23:26:51 2018 +0900 |
committer | Takeru Ohta <phjgt308@gmail.com> | Tue Dec 25 23:26:51 2018 +0900 |
tree | b163d7d4f9b64c5622de349ed0fb90f4b987b1d9 | |
parent | 9b9b92f3ae9e58b4baadcadc430e130a221a385d [diff] |
v0.1.3
An Erlang implementation of Thrift protocol.
Body = #thrift_protocol_struct{ fields = #{1 => true, 2 => {i8, -1}} }, Message = #thrift_protocol_message{ method_name = <<"foo">>, message_type = call, sequence_id = 0, body = Body }, Encoded = list_to_binary(thrift_protocol:encode_message(Message, compact)), <<130,33,0,3,102,111,111,17,19,255,0>> = Encoded, {Decoded, <<>>} = thrift_protocol:decode_message(Encoded, compact), Message = Decoded.