[
https://issues.apache.org/jira/browse/THRIFT-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15142723#comment-15142723
]
Hudson commented on THRIFT-2980:
--------------------------------
FAILURE: Integrated in Thrift-precommit #75 (See
[https://builds.apache.org/job/Thrift-precommit/75/])
THRIFT-2980 Accept external buffer in thrift_memory_buffer constructor
(cjmay4754:
[https://github.com/apache/thrift/commit/f6b45366a067adf51283f34b1dafb32160d53263])
* lib/c_glib/test/testmemorybuffer.c
* lib/c_glib/src/thrift/c_glib/transport/thrift_memory_buffer.c
* lib/c_glib/src/thrift/c_glib/transport/thrift_memory_buffer.h
> 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)