[thrift] iolists and binaries in Erlang
authorChristopher Piro <cpiro@apache.org>
Wed, 30 Jan 2008 01:39:01 +0000 (01:39 +0000)
committerChristopher Piro <cpiro@apache.org>
Wed, 30 Jan 2008 01:39:01 +0000 (01:39 +0000)
commitaa93451dbfd068c4e661e646b3e8a24f1f7ee29a
tree600635bb4f5cab0ea573c129c4dd910afb3dad5b
parent073e2cfeb5eea795ca6941774633243d3958e970
[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: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665447 13f79535-47bb-0310-9956-ffa450edef68
lib/erl/src/protocol/tBinaryProtocol.erl
lib/erl/src/transport/tBufferedTransport.erl
lib/erl/src/transport/tSocket.erl