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

Thomas Weise commented on APEXMALHAR-2251:
------------------------------------------

There shouldn't be a situation where the distinction matters for replacement of 
Slice. Instead of constructing Slice, it would be ByteBuffer.wrap(...). Also 
did a few tests with equals, any two buffers with same byte sequence are 
considered equal. 

Compared to Slice a ByteBuffer adds a couple of fields, since it also deals 
with the position for manipulation etc.
 

> Replace dependency on com.datatorrent.netlet.util.Slice
> -------------------------------------------------------
>
>                 Key: APEXMALHAR-2251
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2251
>             Project: Apache Apex Malhar
>          Issue Type: Improvement
>            Reporter: bright chen
>
> Dependency on com.datatorrent.netlet.util.Slice should be replaced with 
> either java.nio.ByteBuffer or internal malhar class that provides similar 
> functionality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to