r1513@opsdev009 (orig r80202): cpiro | 2008-01-29 17:39:01 -0800
[thrift] iolists and binaries in Erlang
Summary: three related changes:
* for numeric types in tBinaryProtocol call effectful_write with binary(), not [char()]
* tBinaryProtocol:writeString now takes either [char()], iolist(), or binary() ... now you can use any of the three where a Thrift string is required
* tBufferedTransport now buffers by building an iolist() rather than Buffer++Data. zomg.
Reviewed By: eletuchy
Test Plan: everything seems to work as usual, and binary() works as expected
Revert Plan: ok
git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@775 41a61cd8-c433-0410-bb1c-e256eeef9e11