[
https://issues.apache.org/jira/browse/THRIFT-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-3481.
------------------------------------------
Resolution: Fixed
Wrap-your-own-buffer support exists: {{TMemoryBuffer(uint8_t* buf, uint32_t sz,
MemoryPolicy policy)}} at
[lib/cpp/src/thrift/transport/TBufferTransports.h|https://github.com/apache/thrift/blob/master/lib/cpp/src/thrift/transport/TBufferTransports.h]
line 580. Resolving as Fixed.
> introduce TSimpleMemoryTransport which wraps a customer owned memory chunk to
> conduct both read and write operations
> --------------------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-3481
> URL: https://issues.apache.org/jira/browse/THRIFT-3481
> Project: Thrift
> Issue Type: New Feature
> Components: C++ - Library
> Affects Versions: 0.9.3
> Reporter: Xiaoshuang LU
> Priority: Major
> Attachments: THRIFT-3481.patch
>
>
> It would be great if there is a transport class which 1. does not need to
> care about the memory management, 2. is capable of both read and write
> operations.
> TMemoryBuffer is very close to the requirements, but no data can be written
> to observed TMemoryBuffer as stated in the comments.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)