[
https://issues.apache.org/jira/browse/RATIS-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17148297#comment-17148297
]
Mukul Kumar Singh commented on RATIS-990:
-----------------------------------------
we can use the createString function which provides the same functionality as
createByteVector.
{code}
+ int dataContentOffset = builder.createString(
+ p.getMessage().getContent().asReadOnlyByteBuffer());
{code}
> Update flatbuffers version
> --------------------------
>
> Key: RATIS-990
> URL: https://issues.apache.org/jira/browse/RATIS-990
> Project: Ratis
> Issue Type: Improvement
> Components: thirdparty
> Reporter: Tsz-wo Sze
> Assignee: Ansh Khanna
> Priority: Major
>
> https://github.com/apache/incubator-ratis-thirdparty/blob/38b1c0c4201ec0856aed3230fd16ba26cb929e57/pom.xml#L76-L77
> {code}
> <!--Version of flatbuffers to be shaded -->
> <shaded.flatbuffers.version>1.11.0</shaded.flatbuffers.version>
> {code}
> Currently, the flatbuffers version is 1.11.0 in ratis-thirdparty. However,
> 1.11.0 seems not supporting methods using ByteBuffer so that it does not
> support zero buffer copying. We should update it 1.12.0 or above.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)