rb: Teach BinaryProtocolAccelerated to encode strings with NULs [THRIFT-97]
authorDavid Reiss <dreiss@apache.org>
Fri, 25 Jul 2008 21:06:06 +0000 (21:06 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 25 Jul 2008 21:06:06 +0000 (21:06 +0000)
commit0c7d38cf835b53d6d1b44fc099d3eab8cf3c5259
tree783b48afffe8fcb58609a4e9c5847811ee884160
parent72754e198f9b4bbba49bd38a58321d211ab9aed4
rb: Teach BinaryProtocolAccelerated to encode strings with NULs [THRIFT-97]

This patch adds a spec and fixes the behavior to properly treat strings as binary
blobs of data instead of as C strings when writing to the transport.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@679899 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/ext/binaryprotocolaccelerated.c
lib/rb/spec/binaryprotocolaccelerated_spec.rb