r1513@opsdev009 (orig r80202): cpiro | 2008-01-29 17:39:01 -0800
commite07a10dc2f391cc959c2ea510dda76f5d223086f
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Wed, 30 Jan 2008 01:39:02 +0000 (30 01:39 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Wed, 30 Jan 2008 01:39:02 +0000 (30 01:39 +0000)
tree600635bb4f5cab0ea573c129c4dd910afb3dad5b
parentf8b2cfaacfc5ad66cd356dd255fba60c0c843821
 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
lib/erl/src/protocol/tBinaryProtocol.erl
lib/erl/src/transport/tBufferedTransport.erl
lib/erl/src/transport/tSocket.erl