Expose thrift methods to read structs
commit42d5f0ee1777f6d04ab400d38f9a0c53e79dcd27
authorCullen Walsh <ckwalsh@fb.com>
Fri, 24 Oct 2014 21:45:29 +0000 (24 14:45 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 27 Oct 2014 23:00:21 +0000 (27 16:00 -0700)
tree742c7d2227a8da8d2ca4787e5692b6c3cd095cee
parent9f9bd15e8deb486a2bf503305ea4b0d3aa91a6d1
Expose thrift methods to read structs

Summary: The existing thrift methods are great for sending/reading method
calls, but don't work well for thrift processors which need the seqid and
message type that is thrown away by the existing methods. This diff exposes
methods that only read structs and don't expect a message header, for both the
binary and compact protocols.

Reviewed By: @​mcduff

Differential Revision: D1638636
hphp/runtime/ext/thrift/binary.cpp
hphp/runtime/ext/thrift/compact.cpp
hphp/runtime/ext/thrift/ext_thrift.cpp
hphp/runtime/ext/thrift/ext_thrift.h
hphp/runtime/ext/thrift/ext_thrift.php