commit | 5532c18d585cb93c891f76c45d100363d5ec0e03 | [log] [tgz] |
---|---|---|
author | Takeru Ohta <phjgt308@gmail.com> | Thu Oct 19 01:35:21 2017 +0900 |
committer | Takeru Ohta <phjgt308@gmail.com> | Thu Oct 19 01:35:21 2017 +0900 |
tree | c667e0d4ed49b9d6737678c839c582982b30124b | |
parent | cfbe8dc6ae4e2df4709f6dee573637429519326a [diff] |
Update README.md
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.