You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Chandler May (JIRA)" <ji...@apache.org> on 2016/03/03 23:51:18 UTC
[jira] [Commented] (THRIFT-2980) ThriftMemoryBuffer doesn't have a
constructor option to take an existing buffer
[ https://issues.apache.org/jira/browse/THRIFT-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15178764#comment-15178764 ]
Chandler May commented on THRIFT-2980:
--------------------------------------
Bump? I would very much like to see this fixed; I can't use thrift_memory_buffer at all without it. The travis failures were unrelated.
> ThriftMemoryBuffer doesn't have a constructor option to take an existing buffer
> -------------------------------------------------------------------------------
>
> Key: THRIFT-2980
> URL: https://issues.apache.org/jira/browse/THRIFT-2980
> Project: Thrift
> Issue Type: Improvement
> Components: C glib - Library
> Reporter: Eugene Tolmachev
> Assignee: Simon South
>
> If I want to do a straight-up serialization/deserialization sans RPC I'd like to be able to read like this C# does:
> bq. Item Deserialize(byte[] bytes) { using (var trans = new TMemoryBuffer(bytes)) using (var proto = new TBinaryProtocol(trans)) return new Item().Do(item => item.Read(proto)); }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)