[ 
https://issues.apache.org/jira/browse/THRIFT-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Yaskevich updated THRIFT-883:
-----------------------------------

    Attachment: TBinaryProtocol-writeBinary.patch

Improvement for TBinaryProtocol.writeBinary(ByteBuffer) to support buffers 
without backing array.

> Extend ByteBuffer support to non-array-backed ByteBuffers
> ---------------------------------------------------------
>
>                 Key: THRIFT-883
>                 URL: https://issues.apache.org/jira/browse/THRIFT-883
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>    Affects Versions: 0.4
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>             Fix For: 0.7
>
>         Attachments: TBinaryProtocol-writeBinary.patch
>
>
> Binary fields are backed by ByteBuffers that wrap byte arrays, and all the 
> protocol code assumes that every ByteBuffer is of this type. However, now 
> that the structs setters allow ByteBuffer arguments, it would be nice to 
> support other kinds of ByteBuffers, like those that are allocated direct.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to