You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2013/06/10 18:15:20 UTC

[jira] [Commented] (THRIFT-883) Extend ByteBuffer support to non-array-backed ByteBuffers

    [ https://issues.apache.org/jira/browse/THRIFT-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13679594#comment-13679594 ] 

Christopher Tubbs commented on THRIFT-883:
------------------------------------------

This issue also affects read-only ByteBuffers, which cannot be exposed as an array. This is somewhat limiting.
                
> 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: 1.0
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira